Re: Openresolv Config
== Iqbal Aroussi wrote on Tue 7.Aug'12 at 14:00:06 + == > Hi Matthew, > > Thank you so much for your quick reply. > How Can I override using openresolv/resolvconf or configuring it for static > IP on a server ? > Currently my servers are configured with DHCP by the webhost company. > I prefer to have them configured with static IP but right now I'm stuck on > the openresolv problem. > > Do you know where can I find a openresolv howto for FreeBSD-9 please. > > Best Regards You can set up a local DNS server using named. This is what I do for my mail server. I do use NetBSD on that machine though but the set up won't much different. You would need to configure your router to always assign the same ip to your machine and configure your network interface to use that ip, possibly within /etc/rc.conf. That way the dhclient won't override the entries you put in /etc/resolv.conf and /etc/nsswitch.conf when it boots-up. That might be a solution to your problem, perhaps others could confirm that for sure. Jamie ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Openresolv Config
Hi Matthew, Thank you so much for your quick reply. How Can I override using openresolv/resolvconf or configuring it for static IP on a server ? Currently my servers are configured with DHCP by the webhost company. I prefer to have them configured with static IP but right now I'm stuck on the openresolv problem. Do you know where can I find a openresolv howto for FreeBSD-9 please. Best Regards On Tue, Aug 7, 2012 at 1:41 PM, Matthew Seaman < m.sea...@infracaninophile.co.uk> wrote: > On 07/08/2012 14:05, Iqbal Aroussi wrote: > > Can you please give some hints on configuring Openresolv on FreeBSD-9 > > My server is configured with DHCP, but I want to change the nameservers > in > > /etc/resolv.conf to use mein. > > I'm not sure that Openresolv is necessarily the right thing to use. > > This is how you would override the resolvers handed out to you by a DHCP > server using dhclient. Edit the file /etc/dhclient.conf and add lines > like so: > > interface "em0" { >supersede domain-name-serves 192.0.2.1, 192.0.2.2; > } > > Obviously, substitute the correct interface name and the IP numbers of > your own DNS servers. There's also 'prepend' instead of 'supersede,' > which allows you to stick your nameservers in as the preferred choice, > but still keep the original ones as a fallback. See dhclient.conf(5). > > This assumes you've only got the one ethernet interface being configured > by DHCP, and that you always want to use your own nameservers > irrespective of what network you're connecting to. > > Cheers, > > Matthew > > -- > Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard > Flat 3 > PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate > JID: matt...@infracaninophile.co.uk Kent, CT11 9PW > > -- * Iqbal Aroussi * *+212 699 206 390* *iq...@aroussi.name* ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Openresolv Config
On 07/08/2012 14:05, Iqbal Aroussi wrote: > Can you please give some hints on configuring Openresolv on FreeBSD-9 > My server is configured with DHCP, but I want to change the nameservers in > /etc/resolv.conf to use mein. I'm not sure that Openresolv is necessarily the right thing to use. This is how you would override the resolvers handed out to you by a DHCP server using dhclient. Edit the file /etc/dhclient.conf and add lines like so: interface "em0" { supersede domain-name-serves 192.0.2.1, 192.0.2.2; } Obviously, substitute the correct interface name and the IP numbers of your own DNS servers. There's also 'prepend' instead of 'supersede,' which allows you to stick your nameservers in as the preferred choice, but still keep the original ones as a fallback. See dhclient.conf(5). This assumes you've only got the one ethernet interface being configured by DHCP, and that you always want to use your own nameservers irrespective of what network you're connecting to. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. 7 Priory Courtyard Flat 3 PGP: http://www.infracaninophile.co.uk/pgpkey Ramsgate JID: matt...@infracaninophile.co.uk Kent, CT11 9PW signature.asc Description: OpenPGP digital signature
Openresolv Config
Hi Can you please give some hints on configuring Openresolv on FreeBSD-9 My server is configured with DHCP, but I want to change the nameservers in /etc/resolv.conf to use mein. Thanks in advance Best Regards -- * Iqbal Aroussi * ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"