Hi,
Im pretty new to the Unix world. I need to know what file I need to
configure for the default gateway and default DNS server my server will be
using. Sorry for the beginner question.
Im pretty new to the Unix world. I need to know what file I need to
configure for the default gateway and default DNS server my server will be
using. Sorry for the beginner question.
domain name
nameserver ip address
nameserver ip address
goodluck ...Liam
Sent via Deja.com http://www.deja.com/Quote:> Hi,
> Im pretty new to the Unix world. I need to know what file I need to
> configure for the default gateway and default DNS server my server
will be
> using. Sorry for the beginner question.
For your default gateway create a file: /etc/defaultrouter and put
the ip address of the gateway in there. For DNS you need to create a
file: /etc/resolve.conf and make it look like this:
domain <your domain>
nameserver <ip of your nameserver>
Then look at the file /etc/nsswitch.conf. Make sure that DNS is on of
the options next to the host entry
ie: hosts nis [not found=RETURN] dns files
You'll have to either reboot or add the default route using the route
command to get the default router going.
Quote:>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<
Quote:> Hi,
> Im pretty new to the Unix world. I need to know what file I need to
> configure for the default gateway and default DNS server my server
will be
> using. Sorry for the beginner question.
The router is defined in /etc/defaultrouter. Create the file with theQuote:>Im pretty new to the Unix world. I need to know what file I need to
>configure for the default gateway and default DNS server my server will be
>using. Sorry for the beginner question.
You need to change /etc/nsswitch.conf so that the "hosts:" line
contains "dns" (the recommend setting is usually "hosts: files dns").
"man nsswitch.conf" You also need to set up /etc/resolv.conf - put
"nameserver 12.34.56.78" in there, and add a second line with a second
nameserver if you like. "man resolv.conf" - you probably also want to
set up a domain or search path.
Go grab yourself a Solaris FAQ and you'll be just fine - try
www.sunhelp.org.
-MM
are you perhaps setting up PPP?Quote:>Hi,
>Im pretty new to the Unix world. I need to know what file I need to
>configure for the default gateway and default DNS server my server will be
>using. Sorry for the beginner question.
www.bolthole.com/solaris/configppp.sh
--
[Trim the no-bots from my address to reply to me by email!]
[ Do NOT email-CC me on posts. Pick one or the other.]
--------------------------------------------------
The word of the day is mispergitude
2. Solaris Unix Admin Opportunity
3. Default gateway's default gateway.
4. Reverse DNS mapping w/ persistent cache?
5. dns, default gateway, nt dhcp server
7. How to get default Gateway address, subnet address, DNS names using C/C++
8. shared libraries, when to use them
9. where to setup Default-Gateway and DNS on SOL7
10. newbie help - default gateway/dns?
13. Two gateways only default gateway works.