Re: dhclient and host resolution

From: Olaf Hoyer (ohoyer_at_ohoyer.de)
Date: 04/18/04

  • Next message: Gerard Seibert: "Re: Configuring Compaz Wireless Optical Wheel Mouse"
    Date: Sun, 18 Apr 2004 13:40:27 +0200 (CEST)
    To: Killermink! <killermink@hotmail.com>
    
    

    On Sun, 18 Apr 2004, Killermink ! wrote:

    >
    > #echo "nameserver 192.168.2.1" > /etc/resolv.conf
    >
    > (this is the correct IP for the Mac)
    >
    > then
    >
    > #ping www.google.com
    >
    > And it worked immediately! Thanks very much, I feel pretty stupid with such
    > an easy answer, but shouldn't this info be provided by dhclient? If I move
    > to another network, say with a gateway of 10.x.x.x or other, will I have to
    > change resolv.conf again? Is there anyway to get this automatically or is
    > it a feature of FreeBSD/dhclient?
    >

    Hi!

    Well, you have to tell the DHCP server to also provide to the client
    gateway and DNS information explicitly.

    My notebook gets its /etc/resolv.conf entries also from DHCP @work,
    respectively when I work @home from my DSL provider.
    So dhclient is able to do that, resp. the ppp when it comes to the DSL
    Line...

    HTH
    Olaf

    -- 
    Olaf Hoyer        ohoyer@gaff.hhhr.ision.net
    Fuerchterliche Erlebniss geben zu raten,
    ob der, welcher sie erlebt, nicht etwas Fuerchterliches ist.
    (Nietzsche, Jenseits von Gut und Boese)
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    

  • Next message: Gerard Seibert: "Re: Configuring Compaz Wireless Optical Wheel Mouse"

    Relevant Pages

    • Re: DHCP server question
      ... try dhcploc.exe - see what it reports? ... Does XP Pro actually have a DHCP server running? ... One is acting soley as my internet gateway ... DHCP server running on my gateway, and if so, where is it hidden? ...
      (microsoft.public.windowsxp.help_and_support)
    • Re: IP address change
      ... > This network has been running for a min 2 years. ... > the default gateway address wasn't found/set. ... there is a connection problem or a DHCP Server ...
      (microsoft.public.windowsxp.network_web)
    • Use BEFSR41 to join existing network infrastructure as DHCP server...help!
      ... I am at a main company office with a DHCP server here. ... gateway at 192.168.1.253. ... office network. ... In the router, I set its default gateway to 192.168.1.253, ...
      (microsoft.public.windowsxp.network_web)
    • Re: ip address on lan getting hijacked
      ... router which has an address of 192.168.1.1. ... down and reset to 192.168.1.100, apparently by dhclient accessing the ... entry in the DHCP server to assign the same address to a particular MAC ...
      (Ubuntu)
    • Re: Network PCs for Printer Sharing Only
      ... both Gateway and DNS are also blank. ... PC2 is a laptop and we have a different PC2 every now and ... Here's a DHCP server that you can run on PC1: ... Steve Winograd, MS-MVP (Windows Networking) ...
      (microsoft.public.windowsxp.network_web)