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: matthew@xxxxxxxxxxxxxxxxxxxxxx Kent, CT11 9PW

Attachment: signature.asc
Description: OpenPGP digital signature



Relevant Pages

  • Re: Unable to obtain a server assigned IP address
    ... I see that I can still get an address from the DHCP server on ... What about the DHCP registry flag per question below? ... In the connections panel three adapters are listed: ... this seems to be the interface that it is ...
    (microsoft.public.pocketpc.activesync)
  • Re: Some Questions about setting up a 9.3 box as a router
    ... >>my Linksys router using DHCP. ... >>interface but how can I grab nameserver information from the external ... then no nameserver information is distributed via DHCP ... > A better way is to set up your own name server on your lan. ...
    (alt.os.linux.suse)
  • Re: Some Questions about setting up a 9.3 box as a router
    ... > my Linksys router using DHCP. ... > interface but how can I grab nameserver information from the external ... then no nameserver information is distributed via DHCP ... A better way is to set up your own name server on your lan. ...
    (alt.os.linux.suse)
  • Re: Bridging wifi to ethernet
    ... interface over to my eth0 interface so I can hook in all the ... wired ethernet users to get access to the WIFI networks DHCP server? ... The magic part I don't know how to do is "route and NAT". ...
    (Fedora)
  • Re: DHCP and DNS issues
    ... Thanks on how to get rid of the old interface. ... >> I uninstall and reinstalled the DHCP server, set it up and activated it. ...
    (microsoft.public.win2000.networking)