Re: dhclient, resolv.conf

2011-10-25 Thread scire
Hello! I have a question about dhclient-script. I am not sh programmer, and have only few knowledge about dhclient. I copied bellow the last part of /sbin/dhclient-script. Does this mean that at TIMEOUT it must exit with error, unless it changes resolv.conf, what I dont want? I have a wanted lease

Re: dhclient, resolv.conf

2011-10-24 Thread scire
Boudewijn Dijkstra wrote: > If the DHCP server says things that are wrong, then _that_ needs to be > fixed. I think, a functional and proactive secure operating system should not do anythyng some DHCP Server somewhere tells him in a way that cannot be controlled with an appropriate configuration

Re: dhclient, resolv.conf

2011-10-24 Thread Boudewijn Dijkstra
Op Sat, 22 Oct 2011 10:41:56 +0200 schreef Philippe Meunier : Kenneth R Westerback wrote: If you are using dhclient, then /etc/resolv.conf is not really a configuration file. Unless your machine runs its own DNS server. Then you really don't want dhclient-script to mess with your /etc/resolv

Re: dhclient, resolv.conf

2011-10-23 Thread Andres Perera
the dhclient in base, and possibly the isc one, interprets options set to the empty string as unset On Sun, Oct 23, 2011 at 1:38 PM, wrote: > Jurjen Oskam wrote: > >> supersede domain-name-servers 192.168.1.1; >> supersede domain-name ""; > > My dhclient completely ignores > > B supersede doma

Re: dhclient, resolv.conf

2011-10-23 Thread scire
Jurjen Oskam wrote: > supersede domain-name-servers 192.168.1.1; > supersede domain-name ""; My dhclient completely ignores supersede domain-name ""; and sets an unwanted search line given by the server. Indeed you must give supersede domain-name "."; To obtain search . in reso

Re: dhclient, resolv.conf

2011-10-23 Thread Jurjen Oskam
On Sun, Oct 23, 2011 at 12:08:22AM +0200, Jan Stary wrote: > On Oct 22 04:41:56, Philippe Meunier wrote: > > Kenneth R Westerback wrote: > > >If you are using dhclient, then /etc/resolv.conf is not really a > > >configuration file. > > > > Unless your machine runs its own DNS server. > > Just ou

Re: dhclient, resolv.conf

2011-10-22 Thread Jussi Peltola
On Sun, Oct 23, 2011 at 12:08:22AM +0200, Jan Stary wrote: > Just out of curiosity, what would be an example > situation for using a machine that simultaneously > > (1) acts as a name-server for others > (2) gets its network settings dynamicaly reconfigured Any kind of box that is connected to a

Re: dhclient, resolv.conf

2011-10-22 Thread Alexander Hall
On 10/23/11 00:08, Jan Stary wrote: On Oct 22 04:41:56, Philippe Meunier wrote: Kenneth R Westerback wrote: If you are using dhclient, then /etc/resolv.conf is not really a configuration file. Unless your machine runs its own DNS server. Just out of curiosity, what would be an example situa

Re: dhclient, resolv.conf

2011-10-22 Thread Jan Stary
On Oct 22 04:41:56, Philippe Meunier wrote: > Kenneth R Westerback wrote: > >If you are using dhclient, then /etc/resolv.conf is not really a > >configuration file. > > Unless your machine runs its own DNS server. Just out of curiosity, what would be an example situation for using a machine that

Re: dhclient, resolv.conf

2011-10-22 Thread Philippe Meunier
Kenneth R Westerback wrote: >If you are using dhclient, then /etc/resolv.conf is not really a >configuration file. Unless your machine runs its own DNS server. Then you really don't want dhclient-script to mess with your /etc/resolv.conf. But dhclient-script will still blindly mess with /etc/res

Re: dhclient, resolv.conf

2011-10-22 Thread scire
Kenneth R Westerback wrote: > If you are using dhclient, then /etc/resolv.conf is not really a > configuration file. Then it should be called /rmp/resolv.conf If you see dhclient-script, you find a file inflation: /etc/resolv.conf.std, /etc/resolv.conf, /etc/resolv.conf.save, /etc/resolv.conf.

Re: dhclient, resolv.conf

2011-10-21 Thread Kenneth R Westerback
On Thu, Oct 20, 2011 at 08:53:16PM +, sophia.ort...@googlemail.com wrote: > Rogier Krieger wrote: > > > you can use the 'script' parameter described in dhclient.conf > > Perhaps the best solution, not far from what I had in mind from > the beginning, but not a simple configuration for a sim

Re: dhclient, resolv.conf

2011-10-21 Thread Philippe Meunier
Antoine Jacoutot wrote: >I use this: > >send dhcp-lease-time 3600; >request subnet-mask, broadcast-address, routers; > >And my resolv.conf is not modified. That's because you happen to be using a DHCP server that has good enough manners not to try to shove unrequested options (like name servers) d

Re: dhclient, resolv.conf

2011-10-20 Thread sophia . orthoi
Rogier Krieger wrote: > you can use the 'script' parameter described in dhclient.conf Perhaps the best solution, not far from what I had in mind from the beginning, but not a simple configuration for a simple task. > I do not see why you prefer editing resolv.conf over dhclient.conf, > though,

Re: dhclient, resolv.conf

2011-10-20 Thread Ɓukasz Czarniecki
W dniu 2011-10-20 20:11, sophia.ort...@googlemail.com pisze: > But again, I insist in my first question: how I get that > dhclient respect my resolv.conf and do not touch it? chflags uchg /etc/resolv.conf

Re: dhclient, resolv.conf

2011-10-20 Thread Rogier Krieger
On Thu, Oct 20, 2011 at 20:11, wrote: > But again, I insist in my first question: how I get that > dhclient respect my resolv.conf and do not touch it? If you insist on dhclient not touching resolv.conf and do not want to edit the in-base dhclient-script, you can use the 'script' parameter descr

Re: dhclient, resolv.conf

2011-10-20 Thread Antoine Jacoutot
On Thu, 20 Oct 2011, sophia.ort...@googlemail.com wrote: > Again: I dont want that dhclient touch my resolv.conf. I use this: send dhcp-lease-time 3600; request subnet-mask, broadcast-address, routers; And my resolv.conf is not modified. -- Antoine

Re: dhclient, resolv.conf

2011-10-20 Thread Johan Beisser
On Thu, Oct 20, 2011 at 11:11 AM, wrote: > Johan Beisser wrote: > >> Check dhclient.conf(5) and read about the supersede statement. > > Thank you very much for your kind answer. Of course I read not > only dhclient.conf (5), but also a lot of man pages, a lot of > postings in the internet. I thi

Re: dhclient, resolv.conf

2011-10-20 Thread sophia . orthoi
Johan Beisser wrote: > Check dhclient.conf(5) and read about the supersede statement. Thank you very much for your kind answer. Of course I read not only dhclient.conf (5), but also a lot of man pages, a lot of postings in the internet. I think, you misunderstood my question. Again: I dont wan

Re: dhclient, resolv.conf

2011-10-20 Thread Johan Beisser
Check dhclient.conf(5) and read about the supersede statement. jb Semt frim my ipHnoe. On Oct 20, 2011, at 8:35, sophia.ort...@googlemail.com wrote: > Dear Sirs! > > I realy do not want that dhclient touch resolv.conf. > > The recomendation in > > http://www.openbsd.org/faq/faq6.html#DHC