How to configure DNS ?

Hi everybody, please tell me how to configure DNS. Which file is needed configuring?Thanks alot.
[110 byte] By [vantuana] at [2007-11-27 0:48:56]
# 1
http://docs.sun.com/app/docs/doc/816-4556/6maort2po?a=view
kidari..a at 2007-7-11 23:18:10 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2

Thanks , but i want another thing. That is : On my network there is a machine that runs DNS server. And i wanna use his service by showing my machine use IP of DNS server to resolve hostname.

For example on WIndows XP, i assigned the following paramaters:

+Preferred DNS server: 85.23.192.2

+Alternate DNS server:195.131.52.130

How to assign these parameters to networking interface on Solaris?

Thanks alot !!!

vantuana at 2007-7-11 23:18:10 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3
Ensure that you have 'dns' in the line starting with "hosts" in /etc/nsswitch.conf, then create a /etc/resolv.conf containing:nameserver 85.23.192.2nameserver 195.131.52.130 .7/M.
mAbrantea at 2007-7-11 23:18:10 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 4

I have configured the following files:

1) resolv.conf

nameserver 85.235.192.2

nameserver 195.131.52.130

2) nsswitch.conf has a line:

hosts : files dns

and then i restart interface:

# ifconfig nfo0 down

#ifconfig nfo0 up

but it doesn't work.

#nslookup www.sun.com

request timeout , no server is not reachable

I have a note: in dierectory /etc not exist <resolv.conf> file, and i made it myself.

Please help me ! Thanks a lot !

vantuana at 2007-7-11 23:18:10 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 5
Can you ping either of the DNS servers from the sun machine?
kidari..a at 2007-7-11 23:18:10 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 6
Yes i can ping to DNS server. It's working well
vantuana at 2007-7-11 23:18:10 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 7
Thanks Kidari... I found out the problem.
vantuana at 2007-7-11 23:18:10 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 8

... and are you going to keep that information a secret?

You came to this public discussion forum and asked for help.

It appears that responses pointed toward an eventual solution.

Would'n it be nice for others to also learn by simply reading the discusion thread?

Then they would not need to post their own version of the same question, just to get to the same result.

... teach, don't leech.

rukbata at 2007-7-11 23:18:10 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 9

Excuse me, maybe u miss understanding about me. I'm not going to keep that information for myself. I don't know that u are interested in it. I always wanna get knowledge from everybody and share my knowledge ,hope that it is useful to someone.

My problem was: i didn't assign defaultgateway to my networking interface (IP 192.168.1.45). I connect internet through a Lan (through another machine IP 192.168.1.12), so if i wanna to use DNS server, i must route my machine to Gateway in order to connect to DNS server.

Thank u for a straight quote. I'm Vietnamese. We are friends !!!

vantuana at 2007-7-11 23:18:10 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 10
Thank you.It is great to learn the details of how someone finally resolved their issue.You have now been able to teach these details to someone else.
rukbata at 2007-7-11 23:18:10 > top of Java-index,Solaris Operating System,Solaris 10 Features...