OESF Portables Forum

Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: seekyrr on September 16, 2004, 03:45:58 pm

Title: /etc/resolv.conf
Post by: seekyrr on September 16, 2004, 03:45:58 pm
I can ping my dns server from the Z on cradle.  If I add an entry into hosts it can resolve.  When I add my dns server into /etc/resolv.conf it can't resolve.

Any ideas?

Thanks

J.
Title: /etc/resolv.conf
Post by: iamasmith on September 16, 2004, 03:56:14 pm
You are adding lines like...

nameserver 10.1.0.1

right ?
Title: /etc/resolv.conf
Post by: seekyrr on September 16, 2004, 08:17:08 pm
I was just puting the IP ..One per line like

xxx.xxx.xxx.xxx
xxx.xxx.xxx.xxx

J.
Title: /etc/resolv.conf
Post by: Ling on September 16, 2004, 08:21:05 pm
The format should be similar to what iamasmith posted. The intent is to say 'resolve this host name to this IP address'

localhost                127.0.0.1
martysmulebarn     129.0.0.1
mcdonaldland         192.168.0.14

Give it a shot.
Title: /etc/resolv.conf
Post by: seekyrr on September 16, 2004, 09:08:58 pm
I was told the resolv.conf was where to put the DNS servers.

So I put

DNS1  xxx.xxx.xxx.xxx

?

Thnaks

J.
Title: /etc/resolv.conf
Post by: mike151 on September 16, 2004, 10:07:15 pm
mike@localhost> cat resolv.conf

# resolv.conf
# 08-29-02
# search .
# domain ampr.org
nameserver 204.15.125.1
nameserver 204.15.125.2
# nameserver 44.56.26.11

mike@localhost>
Title: /etc/resolv.conf
Post by: iamasmith on September 17, 2004, 04:10:57 am
Quote
The format should be similar to what iamasmith posted. The intent is to say 'resolve this host name to this IP address'

localhost                127.0.0.1
martysmulebarn     129.0.0.1
mcdonaldland         192.168.0.14

Give it a shot.
Ling, that's the format for a host file.

The format for resolv.conf should definely be...


nameserver x.x.x.x
nameserver y.y.y.y


etc.

i.e.

nameserver 10.1.0.1


nameserver is not a label, it's a directive for the resolver.

- Andy
Title: /etc/resolv.conf
Post by: seekyrr on September 17, 2004, 12:24:38 pm
Ty guys.

Got it going now..thanks!!



John