Re: getting DNS from DHCP IP address

2005-06-16 Thread Chuck Swiger

David Banning wrote:
DHCP will normally obtain DNS servers automaticly.  It's likely that you 
could release and renew your lease ("dhclient -r", maybe?) and cause it to 
get new DNS info if the old values are no longer working.


Here may be the answer. I think of DHCP of being a server thing only,
to win boxes.  I hadn't considered using dhclient on the freebsd host.
I will look into this. It sounds like the answer.

Thanks -


You're welcome.

"Trawn-nah?"  


spoken like a true native -


:-)

[ If we've mystified anyone, people actually from Toronto use only two 
syllables.  Although I'm not from there, actually, I was born in a place called 
"Wooster" which is spelled "Worchester", so I've needed to pay attention to 
this issue from early on. ]


--
-Chuck

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: getting DNS from DHCP IP address

2005-06-16 Thread Greg Barniskis

David Banning wrote:

My problem is that the server I use for DNS keeps going dead.

My ISP is most familiar with windows users who get their DNS
automatically from their connection.  When my ISP gives me a good
DNS server number, it seems to go dead six months later, and I have to 
call them again.


Is there a way to get DNS automatically, say from the DHCP connection IP
address given to me? or, is there some great free DNS server that will 
stay in business for some time that I can plug into my resolv.conf?

I am in Toronto, Canada so I guess a DNS should be in reasonable proximity.


Getting DNS server info from the ISP when you get your DHCP lease is 
the typical case, as far as I know (it really has nothing to do with 
Windows users). The special case as it may apply to FreeBSD home 
users is that you might want to be running a home network DNS server 
too (e.g. to host a "myhome.lab" domain). If you're doing that then 
you want the resolv.conf on your firewall to point to localhost (or 
your inside network server) as well as to the ISP DNS servers.


This may be where you're coming from if you are editing resolv.conf 
by hand, whereas DHCP would normally populate resolv.conf for you 
every time your lease is renewed. What you probably want is to 
automatically merge your home network settings with the changing 
info provided by the ISP. Easy to do. I forget the specifics and am 
not at home to check my running config, but I am sure that 
everything you need is within:


man dhclient.conf

You're looking for a "prepend" command to put your local DNS server 
first in resolv.conf, and have DHCP append the ISP's servers. If you 
don't have an internal DNS server, all you need is to send the ISP a 
request for their DNS server addrs (which you'd also do with 
dhclient.conf).


--
Greg Barniskis, Computer Systems Integrator
South Central Library System (SCLS)
Library Interchange Network (LINK)
, (608) 266-6348
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: getting DNS from DHCP IP address

2005-06-16 Thread David Banning
> >Is there a way to get DNS automatically, say from the DHCP connection IP
> >address given to me? or, is there some great free DNS server that will 
> >stay in business for some time that I can plug into my resolv.conf?
> 
> DHCP will normally obtain DNS servers automaticly.  It's likely that you 
> could release and renew your lease ("dhclient -r", maybe?) and cause it to 
> get new DNS info if the old values are no longer working.

Here may be the answer. I think of DHCP of being a server thing only,
to win boxes.  I hadn't considered using dhclient on the freebsd host.
I will look into this. It sounds like the answer.

Thanks -


> "Trawn-nah?"  

spoken like a true native -

-- 
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: getting DNS from DHCP IP address

2005-06-16 Thread Chuck Swiger

David Banning wrote:

My problem is that the server I use for DNS keeps going dead.

My ISP is most familiar with windows users who get their DNS
automatically from their connection.  When my ISP gives me a good
DNS server number, it seems to go dead six months later, and I have to 
call them again.


Yuck.  Ask them to set up DNS boxes which are not going to move.


Is there a way to get DNS automatically, say from the DHCP connection IP
address given to me? or, is there some great free DNS server that will 
stay in business for some time that I can plug into my resolv.conf?


DHCP will normally obtain DNS servers automaticly.  It's likely that you could 
release and renew your lease ("dhclient -r", maybe?) and cause it to get new 
DNS info if the old values are no longer working.


The other way would be to point to valid nameservers somewhere close, and use 
those.  Doing a "whois yourisp.net" might give you some idea.



I am in Toronto, Canada so I guess a DNS should be in reasonable proximity.


"Trawn-nah?"  :-)  Internet reachability matters more than physical location.

--
-Chuck
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"