Re: dhclient expects IPv4 address in dhclient.conf

2018-05-03 Thread Marc Peters
On Thu, May 03, 2018 at 12:05:40PM +0200, Paul de Weerd wrote: > Stick a v6 recursor in /etc/resolv.conf.tail. When dhclient updates > /etc/resolv.conf, it'll append the contents of /etc/resolv.conf.tail > to it and you will have your v6 resolver availble that way. You could > even ignore the v4

Re: dhclient expects IPv4 address in dhclient.conf

2018-05-03 Thread Paul de Weerd
On Thu, May 03, 2018 at 10:44:18AM +0200, Marc Peters wrote: | On Thu, May 03, 2018 at 10:31:27AM +0200, Janne Johansson wrote: | >Since manpage doesn't mention v6 namespace at all, I'd wager you would | >have to | >run something else to pick up v6 resolvers. | | Yeah, that's right. Ma

Re: dhclient expects IPv4 address in dhclient.conf

2018-05-03 Thread Marc Peters
On Thu, May 03, 2018 at 10:31:27AM +0200, Janne Johansson wrote: >Since manpage doesn't mention v6 namespace at all, I'd wager you would >have to >run something else to pick up v6 resolvers. Yeah, that's right. Maybe, i stick to v4 resolvers for now or add it by hand, when i reboot it.

Re: dhclient expects IPv4 address in dhclient.conf

2018-05-03 Thread Janne Johansson
2018-05-02 18:07 GMT+02:00 Marc Peters : > On Wed, May 02, 2018 at 04:24:50PM +0200, Janne Johansson wrote: > > Seems common on other dhcpd's too: > > https://lists.isc.org/pipermail/dhcp-users/2012-May/015511.html > > > > ah, the option has a different name for IPv6 nameservers. Does the base > d

Re: dhclient expects IPv4 address in dhclient.conf

2018-05-02 Thread Marc Peters
On Wed, May 02, 2018 at 04:24:50PM +0200, Janne Johansson wrote: > Seems common on other dhcpd's too: > https://lists.isc.org/pipermail/dhcp-users/2012-May/015511.html > ah, the option has a different name for IPv6 nameservers. Does the base dhclient recognize these different options, or do i hav

Re: dhclient expects IPv4 address in dhclient.conf

2018-05-02 Thread Marc Peters
lient gives me following error: >> >> em1: /etc/dhclient.conf line 17: expecting IPv4 address. >> em1: prepend domain-name-servers "::1" >> em1: ^ >> dhclient.conf ist plain simple: >> ~ $ grep -v "#" /etc/dhclien

Re: dhclient expects IPv4 address in dhclient.conf

2018-05-02 Thread Janne Johansson
2018-05-02 16:06 GMT+02:00 Marc Peters : > Hi misc, > dhclient hates me. I would like to prepend an IPv6 nameserver in the > dhclient configuration on my router when connecting to my ISP, but > dhclient gives me following error: > > em1: /etc/dhclient.conf line 17: expecting I

dhclient expects IPv4 address in dhclient.conf

2018-05-02 Thread Marc Peters
Hi misc, dhclient hates me. I would like to prepend an IPv6 nameserver in the dhclient configuration on my router when connecting to my ISP, but dhclient gives me following error: em1: /etc/dhclient.conf line 17: expecting IPv4 address. em1: prepend domain-name-servers "::1

Re: dhclient.conf and hostname.if

2016-05-07 Thread Mark Carroll
On 07 May 2016, Stuart Henderson wrote: > On 2016-05-06, Mark Carroll wrote: (snip) >> pf ... because it otherwise doesn't realize that 'self' >> includes the address eventually assigned by PPP. > > Use "(self)" not "self". Interesting! Thank you: I'd previously missed this part of the pf.conf(5

Re: dhclient.conf and hostname.if

2016-05-07 Thread Stuart Henderson
On 2016-05-06, Mark Carroll wrote: > On 06 May 2016, Duncan Patton a. Campbell wrote: > >> Is there any similar tag to access the addess assigned by dhcp? >> What other mechanisms exist to update dynamic dns assignments? > > Could ifstated(8) help here? I've separately wondered if I ought to be >

Re: dhclient.conf and hostname.if

2016-05-06 Thread Remi Locherer
On Fri, May 06, 2016 at 04:35:47AM -0600, Duncan Patton a Campbell wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > > Back when the script tag was removed from dhclient.conf the > functionality to do external commands was ostensibly moved > into hostname.if

Re: dhclient.conf and hostname.if

2016-05-06 Thread Remi Locherer
On Fri, May 06, 2016 at 06:21:00AM -0600, Duncan Patton a Campbell wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA256 > > On Fri, 06 May 2016 12:06:58 +0100 > Mark Carroll wrote: > > > On 06 May 2016, Duncan Patton a. Campbell wrote: > > > > > Is there any similar tag to access the adde

Re: dhclient.conf and hostname.if

2016-05-06 Thread Duncan Patton a Campbell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Fri, 06 May 2016 12:06:58 +0100 Mark Carroll wrote: > On 06 May 2016, Duncan Patton a. Campbell wrote: > > > Is there any similar tag to access the addess assigned by dhcp? > > What other mechanisms exist to update dynamic dns assignments? > >

Re: dhclient.conf and hostname.if

2016-05-06 Thread Duncan Patton a Campbell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On Fri, 6 May 2016 11:56:31 +0100 Raf Czlonka wrote: > On Fri, May 06, 2016 at 11:35:47AM BST, Duncan Patton a Campbell > wrote: > > > > Back when the script tag was removed from dhclient.conf the > > functionality to

Re: dhclient.conf and hostname.if

2016-05-06 Thread Mark Carroll
On 06 May 2016, Duncan Patton a. Campbell wrote: > Is there any similar tag to access the addess assigned by dhcp? > What other mechanisms exist to update dynamic dns assignments? Could ifstated(8) help here? I've separately wondered if I ought to be using it to kick pf because it otherwise doesn

Re: dhclient.conf and hostname.if

2016-05-06 Thread Raf Czlonka
On Fri, May 06, 2016 at 11:35:47AM BST, Duncan Patton a Campbell wrote: > > Back when the script tag was removed from dhclient.conf the > functionality to do external commands was ostensibly moved > into hostname.if via the > > !command mechanism. > > in man hostname

dhclient.conf and hostname.if

2016-05-06 Thread Duncan Patton a Campbell
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Back when the script tag was removed from dhclient.conf the functionality to do external commands was ostensibly moved into hostname.if via the !command mechanism. in man hostname.if it says "It is worth noting that ``\$if'

Re: dhclient.conf alias declarations?

2015-07-27 Thread Stuart Henderson
had in FreeBSD was this entry in /etc/dhclient.conf: > > alias { > interface "vr0"; > fixed-address 192.168.1.200; > option subnet-mask 255.255.255.0; > } > > This seems to be silently ignored on OpenBSD 5.7 and the dhclient.conf >

Re: dhclient.conf alias declarations?

2015-07-27 Thread lists
> > ...I can live without the alias address, it would have been > > a convinient way to access the ADSL modem on the WAN side from inside > > the LAN network. > > Perhaps you could add an ifconfig(8) command to rc.local(8) to set > the alias. As previously said any ifconfig aliasing command r

Re: dhclient.conf alias declarations?

2015-07-27 Thread Josh Grosse
On Mon, Jul 27, 2015 at 01:34:09PM +0300, Kimmo Paasiala wrote: > ...I can live without the alias address, it would have been > a convinient way to access the ADSL modem on the WAN side from inside > the LAN network. Perhaps you could add an ifconfig(8) command to rc.local(8) to set the alias. Or

Re: dhclient.conf alias declarations?

2015-07-27 Thread Kimmo Paasiala
. I want to have a static >>>>> alias address on an interface that is otherwise configured with DHCP. >>>>> What I had in FreeBSD was this entry in /etc/dhclient.conf: >>>>> >>>>> alias { >>>>> interface "vr0"; >

Re: dhclient.conf alias declarations?

2015-07-26 Thread Edgar Pettijohn
came across a minor problem. I want to have a static alias address on an interface that is otherwise configured with DHCP. What I had in FreeBSD was this entry in /etc/dhclient.conf: alias { interface "vr0"; fixed-address 192.168.1.200; option subnet-mas

Re: dhclient.conf alias declarations?

2015-07-26 Thread Anathae Townsend
To: misc@openbsd.org Subject: dhclient.conf alias declarations? Hello, I'm in the process of migrating my router/firewall system from FreeBSD to OpenBSD and I came across a minor problem. I want to have a static alias address on an interface that is otherwise configured with DHCP. What I h

Re: dhclient.conf alias declarations?

2015-07-26 Thread Kimmo Paasiala
m FreeBSD >>> to OpenBSD and I came across a minor problem. I want to have a static >>> alias address on an interface that is otherwise configured with DHCP. >>> What I had in FreeBSD was this entry in /etc/dhclient.conf: >>> >>> alias { >>>

Re: dhclient.conf alias declarations?

2015-07-26 Thread Kimmo Paasiala
>> alias address on an interface that is otherwise configured with DHCP. >> What I had in FreeBSD was this entry in /etc/dhclient.conf: >> >> alias { >> interface "vr0"; >> fixed-address 192.168.1.200; >> option subn

Re: dhclient.conf alias declarations?

2015-07-26 Thread Josh Grosse
this entry in /etc/dhclient.conf: alias { interface "vr0"; fixed-address 192.168.1.200; option subnet-mask 255.255.255.0; } This seems to be silently ignored on OpenBSD 5.7 and the dhclient.conf manual page makes no mention of alias declarations. How am I supposed

dhclient.conf alias declarations?

2015-07-26 Thread Kimmo Paasiala
Hello, I'm in the process of migrating my router/firewall system from FreeBSD to OpenBSD and I came across a minor problem. I want to have a static alias address on an interface that is otherwise configured with DHCP. What I had in FreeBSD was this entry in /etc/dhclient.conf:

Re: dhclient.conf does not appear to support resolv.conf formatting for nameservers on non-standard port

2015-07-10 Thread Ryan Freeman
On Thu, Jul 09, 2015 at 04:36:33PM -0700, Seth wrote: > I'm trying to use the following statement in /etc/dhclient.conf > > supersede domain-name-servers [127.0.0.1]:40; don't wrap the ip address in square [] brackets. should clear it up --ryan > > But when the mach

Re: dhclient.conf does not appear to support resolv.conf formatting for nameservers on non-standard port

2015-07-09 Thread Theo de Raadt
> On Thu, Jul 09, 2015 at 10:01:01PM -0600, Theo de Raadt wrote: > > The 4.4BSD chflags model of "security" on inodes is unmaintained, and > > the utilitization of this is not realized OpenBSD. > > > > To be honest, I doubt any of us see much benefit in it, relative to > > other features of the sy

Re: dhclient.conf does not appear to support resolv.conf formatting for nameservers on non-standard port

2015-07-09 Thread Michael McConville
On Thu, Jul 09, 2015 at 10:01:01PM -0600, Theo de Raadt wrote: > The 4.4BSD chflags model of "security" on inodes is unmaintained, and > the utilitization of this is not realized OpenBSD. > > To be honest, I doubt any of us see much benefit in it, relative to > other features of the system. When

Re: dhclient.conf does not appear to support resolv.conf formatting for nameservers on non-standard port

2015-07-09 Thread Theo de Raadt
> On Thu, 09 Jul 2015 18:18:37 -0700, Edgar Pettijohn > wrote: > > > # chflags schg /etc/resolv.conf > > > > Just keep in mind you have to go to single user mode to undo the above. > > That's an interesting workaround I hadn't considered. The problem is that > this setting must be deployed v

Re: dhclient.conf does not appear to support resolv.conf formatting for nameservers on non-standard port

2015-07-09 Thread Seth
On Thu, 09 Jul 2015 19:40:05 -0700, Philip Guenther wrote: Uh, so you want to _ignore_ the option from the server? Then add ignore domain-name-servers; to your dhclient.conf and put the desired nameserver line in your resolv.conf.tail file. That was the missing link, problem solved

Re: dhclient.conf does not appear to support resolv.conf formatting for nameservers on non-standard port

2015-07-09 Thread Philip Guenther
On Thu, Jul 9, 2015 at 4:36 PM, Seth wrote: > I'm trying to use the following statement in /etc/dhclient.conf > > supersede domain-name-servers [127.0.0.1]:40; > > But when the machine boots and the network starts it fails to apply the > setting. The error message is: >

Re: dhclient.conf does not appear to support resolv.conf formatting for nameservers on non-standard port

2015-07-09 Thread Seth
On Thu, 09 Jul 2015 18:18:37 -0700, Edgar Pettijohn wrote: # chflags schg /etc/resolv.conf Just keep in mind you have to go to single user mode to undo the above. That's an interesting workaround I hadn't considered. The problem is that this setting must be deployed via an Ansible playbo

Re: dhclient.conf does not appear to support resolv.conf formatting for nameservers on non-standard port

2015-07-09 Thread Seth
On Thu, 09 Jul 2015 18:01:42 -0700, Ryan Freeman wrote: don't wrap the ip address in square [] brackets. should clear it up The square brackets are necessary when specifying a non-standard DNS port [1] nameserver IPv4 address (in dot notation) or IPv6 address (in hex-and-

Re: dhclient.conf does not appear to support resolv.conf formatting for nameservers on non-standard port

2015-07-09 Thread Edgar Pettijohn
# chflags schg /etc/resolv.conf Just keep in mind you have to go to single user mode to undo the above. On 07/09/15 18:36, Seth wrote: I'm trying to use the following statement in /etc/dhclient.conf supersede domain-name-servers [127.0.0.1]:40; But when the machine boots and the ne

dhclient.conf does not appear to support resolv.conf formatting for nameservers on non-standard port

2015-07-09 Thread Seth
I'm trying to use the following statement in /etc/dhclient.conf supersede domain-name-servers [127.0.0.1]:40; But when the machine boots and the network starts it fails to apply the setting. The error message is: /etc/dhclient.conf line 4: expecting decimal octet. supersede domain

Re: Question re dhclient.conf...Addenedum

2014-12-23 Thread Duncan Patton a Campbell
to allow dynamic dns updates > via nsupdate from a dhcp clients where addresses > are subject to change. I have a solution that > will remain stable so long as the !command > hook in hostname.if remains stable. This is > not as good as the dhclient.conf script interface > as

Re: Question re dhclient.conf

2014-10-09 Thread Duncan Patton a Campbell
olution that > > will remain stable so long as the !command > > hook in hostname.if remains stable. This is > > not as good as the dhclient.conf script interface > > as it can't exclude calls that don't change > > the interface, but hey... > > >

Re: Question re dhclient.conf

2014-09-30 Thread Stuart Henderson
On 2014-09-30, sven falempin wrote: > > I also parse and do custom action with the lease file, > so i forgot all concern about the absence of script hook. > I also regurlarly monitor the lease, so i did not use > > http://entrproject.org/ , looks good stuff It is. This isn't quite what it was de

Re: Question re dhclient.conf

2014-09-29 Thread sven falempin
On Mon, Sep 29, 2014 at 8:42 PM, Stuart Henderson wrote: > On 2014-09-29, Duncan Patton a Campbell wrote: >> On Mon, 29 Sep 2014 05:28:27 -0600 >> Duncan Patton a Campbell wrote: >> >>> /etc/dhclient.conf used to contain a >>> >>> script "

Re: Question re dhclient.conf

2014-09-29 Thread Stuart Henderson
On 2014-09-29, Duncan Patton a Campbell wrote: > On Mon, 29 Sep 2014 05:28:27 -0600 > Duncan Patton a Campbell wrote: > >> /etc/dhclient.conf used to contain a >> >> script "tosomfile" ; >> >> option that could, amongst other things, be used to

Re: Question re dhclient.conf

2014-09-29 Thread Jiri B
in hostname.if remains stable. This is > not as good as the dhclient.conf script interface > as it can't exclude calls that don't change > the interface, but hey... > > # more /etc/hostname.nfe0 > dhcp > !/usr/local/sbin/dydns.sh $if This is executed only during b

Re: Question re dhclient.conf

2014-09-29 Thread Duncan Patton a Campbell
ve a solution that > > will remain stable so long as the !command > > hook in hostname.if remains stable. This is > > not as good as the dhclient.conf script interface > > as it can't exclude calls that don't change > > the interface, but hey... > >

Re: Question re dhclient.conf

2014-09-29 Thread Stuart McMurray
remains stable. This is > not as good as the dhclient.conf script interface > as it can't exclude calls that don't change > the interface, but hey... > > # more /etc/hostname.nfe0 > dhcp > !/usr/local/sbin/dydns.sh $if > > more /usr/local/sbin/dydns.sh > #!/bi

Re: Question re dhclient.conf

2014-09-29 Thread Duncan Patton a Campbell
My purpose here is to allow dynamic dns updates via nsupdate from a dhcp clients where addresses are subject to change. I have a solution that will remain stable so long as the !command hook in hostname.if remains stable. This is not as good as the dhclient.conf script interface as it can&#

Re: Question re dhclient.conf

2014-09-29 Thread Bruno Flueckiger
On 29.09.2014 13:39, Duncan Patton a Campbell wrote: On Mon, 29 Sep 2014 05:28:27 -0600 Duncan Patton a Campbell wrote: /etc/dhclient.conf used to contain a script "tosomfile" ; option that could, amongst other things, be used to set a dynamic assigned dns address to a named ser

Re: Question re dhclient.conf

2014-09-29 Thread Jiri B
On Mon, Sep 29, 2014 at 05:28:27AM -0600, Duncan Patton a Campbell wrote: > /etc/dhclient.conf used to contain a > > script "tosomfile" ; > > option that could, amongst other things, be used to > set a dynamic assigned dns address to a named server. > > This

Re: Question re dhclient.conf

2014-09-29 Thread Duncan Patton a Campbell
On Mon, 29 Sep 2014 05:28:27 -0600 Duncan Patton a Campbell wrote: > /etc/dhclient.conf used to contain a > > script "tosomfile" ; > > option that could, amongst other things, be used to > set a dynamic assigned dns address to a named server. > > This funct

Question re dhclient.conf

2014-09-29 Thread Duncan Patton a Campbell
/etc/dhclient.conf used to contain a script "tosomfile" ; option that could, amongst other things, be used to set a dynamic assigned dns address to a named server. This functionality has been removed and I am trying to figure out if there was some other mechanism to accomplish this b

Re: dhclient.conf

2007-12-02 Thread David Walker
ility. -- Unfortunately the dhcp server is not under my purview. Hacking code is not in my skillset. :[ I am interested in parameters in the event of not being able to contact a server (PROTOCOL TIMING section - timeout, etcetera). The way I read dhclient.conf(5) is lease features are able to be specifi

Re: dhclient.conf

2007-12-02 Thread Nick Guenther
) which get their ip's from dhcp. > wi0, being wireless, is prone to lose it's connection. > I want to change the timeout, etcetera for wi0 in dhclient.conf. > I can't see the information in dhclient.conf(5). > The timeout is set by the DHCP server when it provides the IP.

dhclient.conf

2007-12-02 Thread David Walker
t to change the timeout, etcetera for wi0 in dhclient.conf. I can't see the information in dhclient.conf(5). Best wishes, David

Re: dhclient.conf

2007-11-07 Thread David Walker
Hi James. Thanks for the reply. I was thinking of timeout, retry, reboot (to minimize startup hangs), initial-interval and link-timeout (the PROTOCOL TIMING section). As I understand dhclient.conf(5), the man page deals with system wide settings for these items but does not explain the per

Re: dhclient.conf

2007-11-07 Thread James
aces (fxp0 and wi0) which get their ip's from dhcp. wi0, > being wireless, is prone to lose it's connection. > I want to change the timeout, etcetera for wi0 in dhclient.conf. > I can't see the information in dhclient.conf(5). > > Can someone point me in the right direction? > > Best wishes, > David

dhclient.conf

2007-11-06 Thread David Walker
Hiya. I have 2 interfaces (fxp0 and wi0) which get their ip's from dhcp. wi0, being wireless, is prone to lose it's connection. I want to change the timeout, etcetera for wi0 in dhclient.conf. I can't see the information in dhclient.conf(5). Can someone point me in the right d

Re: misplacement in dhclient.conf.5

2007-10-15 Thread Jason McIntyre
On Mon, Oct 15, 2007 at 02:56:14PM +0200, Vincent GROSS wrote: > Hi folks, > > I found a misleading statement in dhclient.conf.5 : the description of > the 'script' statement is in the lease declaration section, which can > lead someone to think the script statemen

Re: misplacement in dhclient.conf.5

2007-10-15 Thread Vincent GROSS
meh, forgot the demimer ... thank you Nick. here is the inlined patch. $ diff -Naur dhclient.conf.5.orig dhclient.conf.5 --- dhclient.conf.5.origSun Oct 14 22:01:48 2007 +++ dhclient.conf.5 Sun Oct 14 22:00:03 2007 @@ -345,19 +345,6 @@ .Nm dhclient.conf , the value that the user

misplacement in dhclient.conf.5

2007-10-15 Thread Vincent GROSS
Hi folks, I found a misleading statement in dhclient.conf.5 : the description of the 'script' statement is in the lease declaration section, which can lead someone to think the script statement is a part of the static lease declaration. The joined gzip'ed patch fix that,

Re: Problem: Multiple alias{...} statements in dhclient.conf

2006-03-28 Thread Joachim Schipper
"/etc/hostname." I found the place to put the stuff: > /etc/dhclient.conf. Seemed to work well until I tried it on my laptop > having two ifaces (wired and wireless). > > As soon as I define several alias { ... } statements in dhclient.conf, > following dhclient

Problem: Multiple alias{...} statements in dhclient.conf

2006-03-27 Thread Andreas Bihlmaier
Hello misc@, I finally got around to setup a dhcpd in my local LAN. All hosts get their IP by dhcp, but also need an alias (as secure VPN inside LAN) on each interface, after playing around with "/etc/hostname." I found the place to put the stuff: /etc/dhclient.conf. Seemed to work we