Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dhcp option for rotate option in /etc/resolv.conf?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
deanpence
Apprentice
Apprentice


Joined: 08 Nov 2004
Posts: 158
Location: Earth

PostPosted: Thu Jun 22, 2006 2:33 am    Post subject: dhcp option for rotate option in /etc/resolv.conf? Reply with quote

I'm trying to figure out whether it's possible with dhcpd to specify an option that will force clients to put "options rotate" in /etc/resolv.conf. Any ideas?
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Thu Jun 22, 2006 6:58 am    Post subject: Reply with quote

fully untested, but maybe with something like this on server side dhcp config
Code:
option my-clients-options-rotate code 222 = text;
option my-clients-options-rotate "options rotate";

this *should* send the text 'options rotate' (as dhcp option 222) to the client but i've no idea whether or not dhcpcd or alike on client side can interpret that one to be written to resolv.conf.
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Jun 22, 2006 8:26 am    Post subject: Reply with quote

Code 222 isn't exactly standard, so no :P

However, it is possible by using resolvonf-gentoo and a dhcp client that supports it.
Then put whatever resolv.conf options you want in the tail config file /etc/resolvconf/resolv.conf.d/tail
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Thu Jun 22, 2006 5:27 pm    Post subject: Reply with quote

UberLord wrote:
Code 222 isn't exactly standard, so no :P

Yes i know :roll:
I did choose 222 as that one seems to be not predefined for anything i.e. 'free for use'
But resolv-conf is the much better option - reminds me to finally read something more about and play with that...
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum