Author Topic: /etc/resolv.conf  (Read 4470 times)

seekyrr

  • Newbie
  • *
  • Posts: 45
    • View Profile
/etc/resolv.conf
« 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.
Z SL5500
OZ3.3.6-pre1 / Opie 1.1.4 ROM Hentges
512 Lex CF
256 Kingston SD
Ambicom Wireless CF
Pockettop IR Keyboard
DigiTrav. GPS

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
/etc/resolv.conf
« Reply #1 on: September 16, 2004, 03:56:14 pm »
You are adding lines like...

nameserver 10.1.0.1

right ?
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

seekyrr

  • Newbie
  • *
  • Posts: 45
    • View Profile
/etc/resolv.conf
« Reply #2 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.
Z SL5500
OZ3.3.6-pre1 / Opie 1.1.4 ROM Hentges
512 Lex CF
256 Kingston SD
Ambicom Wireless CF
Pockettop IR Keyboard
DigiTrav. GPS

Ling

  • Sr. Member
  • ****
  • Posts: 350
    • View Profile
    • http://
/etc/resolv.conf
« Reply #3 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.
SL-C3200 w/ pdaXii13 5.3
SL-C860 w/ OZ GPE 3.4.1
Accessories: 4GB Microdrive, 4GB Transcend SD, Linksys WFC12 CF 802.11b, Ambicom CF Modem, Socket Bluetooth

seekyrr

  • Newbie
  • *
  • Posts: 45
    • View Profile
/etc/resolv.conf
« Reply #4 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.
Z SL5500
OZ3.3.6-pre1 / Opie 1.1.4 ROM Hentges
512 Lex CF
256 Kingston SD
Ambicom Wireless CF
Pockettop IR Keyboard
DigiTrav. GPS

mike151

  • Newbie
  • *
  • Posts: 34
    • View Profile
/etc/resolv.conf
« Reply #5 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>

iamasmith

  • Hero Member
  • *****
  • Posts: 1248
    • View Profile
/etc/resolv.conf
« Reply #6 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
« Last Edit: September 17, 2004, 04:53:52 am by iamasmith »
OpenBSD 4.2 -current on full 4Gb of SL-C3000
Microdrive replaced with 4Gb SanDisk Extreme III card

seekyrr

  • Newbie
  • *
  • Posts: 45
    • View Profile
/etc/resolv.conf
« Reply #7 on: September 17, 2004, 12:24:38 pm »
Ty guys.

Got it going now..thanks!!



John
Z SL5500
OZ3.3.6-pre1 / Opie 1.1.4 ROM Hentges
512 Lex CF
256 Kingston SD
Ambicom Wireless CF
Pockettop IR Keyboard
DigiTrav. GPS