On Wed, 2007-10-31 at 10:04 +1100, [EMAIL PROTECTED] wrote:
>         I'm trying to setup a Centos 4 system, just noticed I can not
>         resolve my
>         own hostname, though, can resolve 'external' names
>         
>         # host www.sbt.net.au
>         Host www.sbt.net.au not found: 2(SERVFAIL)
>         # host www.slug.org.au
>         www.slug.org.au is an alias for rusty.slug.org.au.
>         rusty.slug.org.au has address 202.177.212.193
>         
>         # cat /etc/resolv.conf
>         search sbt.net.au
>         nameserver 127.0.0.1
>         nameserver 203.42.34.53
>         nameserver 203.28.234.5
>         
>         # cat /etc/hosts
>         # Do not remove the following line, or various programs
>         # that require network functionality will fail.
>         127.0.0.1               bilby.sbt.net.au localhost
>         localhost.localdomain

Seems pretty straight forward: you've told it 127.0.0.1 is sbt.net.au
and without doubt nsswitch tells it order is files ... dns

Do your self a favour: 127.0.0.1 is localhost.localdomain localhost
and nothing else.
Put the local IP and name in /etc/hosts eg say you want to access
www.sbt.net.au as 192.168.0.10 tell it in /etc/hosts.

If you are behind an ADSL router with a network of machines and virtual
hosts at play you will need your own dns and views or the magic on EVERY
machine in your network.

James

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to