View previous topic :: View next topic |
Author |
Message |
deanpence Apprentice
Joined: 08 Nov 2004 Posts: 158 Location: Earth
|
Posted: Thu Jun 22, 2006 2:33 am Post subject: dhcp option for rotate option in /etc/resolv.conf? |
|
|
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 |
|
|
think4urs11 Bodhisattva
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Thu Jun 22, 2006 6:58 am Post subject: |
|
|
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 |
|
|
UberLord Retired Dev
Joined: 18 Sep 2003 Posts: 6835 Location: Blighty
|
|
Back to top |
|
|
think4urs11 Bodhisattva
Joined: 25 Jun 2003 Posts: 6659 Location: above the cloud
|
Posted: Thu Jun 22, 2006 5:27 pm Post subject: |
|
|
UberLord wrote: | Code 222 isn't exactly standard, so no |
Yes i know
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 |
|
|
|