Configure DNS


 
Thread Tools Search this Thread
Special Forums IP Networking Configure DNS
# 1  
Old 05-02-2001
Question

I am running Solaris 2.6 Server on a Sparc 10 and I was wondering how I can manually specify a DNS server to resolve hostnames. Any help will be greatly appreciated.
And also I have created a file in the /etc dir named defaultrouter and added th IP address of my router, but when I ping another computer on a seperate network it replies with something like "network unreachable from gateway X.X.X.X " where "X.X.X.X" is the IP address of my Unix machine...not the router. I was wondering if there is a command that will allow me to view all of my network settings such as IP Address, Default Gatway, DNS Servers, etc....
# 2  
Old 05-02-2001
Put a line in /etc/resolv.conf like this:

nameserver X.X.X.X

(put in your nameserver's IP address instead of X's)


You may specify more than one "nameserver" line in the resolv.conf file.

You might have to restart networking to get your /etc/defaultrouter file read in. Alternately, use the "route" command to add a default gateway. Something like:

route add default gw X.X.X.X


"netstat -r" will show your routes. "ifconfig" will show your IP address.

[Edited by PxT on 05-07-2001 at 11:02 AM]
# 3  
Old 05-04-2001
I created the resolv.conf file in the /etc/ directory and added the line:
nameserver x.x.x.x

but I still cannot get any name resolution. I can access public websites via IP address, but not hostname.....weird!
# 4  
Old 05-05-2001
Question

Did you add the name of your local hostname to the /etc/hosts file?
# 5  
Old 05-07-2001
Quote:
I created the resolv.conf file in the /etc/ directory and added the line: nameserver x.x.x.x
You did replace the x's with the IP address of your nameserver, right? The line should look something like:

nameserver 192.168.0.1

replace the IP with that of your DNS server.
# 6  
Old 05-07-2001
You also need the name of your domain in the resolv.conf file:

Code:
domain     yourdomain.com

# 7  
Old 05-07-2001
my resolv.conf look's like this:

nameserver 10.10.10.1

my host file looks like this:

10.10.10.1 nameserver

This computer is not part of a domain.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Trying to configure DNS using BIND package in Oracle Linux 6.6

Version: Oracle Linux 6.6 I am trying to set up DNS for forward and reverse lookups. I am new to BIND package. I have installed the following packages. bind (includes DNS server, named) bind-utils (utilities for querying DNS servers about host information) bind-libs (libraries... (0 Replies)
Discussion started by: kraljic
0 Replies

2. Homework & Coursework Questions

Configure DNS in rhel6.3

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: cant configure dns in virtual box. im using rhel6.3. i have a cd containing rhel which the professor provided us.... (2 Replies)
Discussion started by: rpmacaspac
2 Replies

3. UNIX for Advanced & Expert Users

Set up and configure DNS in virtualbox

hi to everyone. our instructor gave us a cd containing rhel6. where on 3rd week now and he is assgning us to configure a dns. Im using rhel 6.3(anaconda). i install bind. and says:nothing to do. when i follow step by step configuration in some website i encounter problems like i have no file... (1 Reply)
Discussion started by: rpmacaspac
1 Replies

4. Red Hat

How to configure DNS configuration for RHEL 5?

I wanted to know how to configure DNS configuration for RHEL 5. I hope, my query is clear of how to setup DNS for RHEL 5. Please revert with the reply to my query Regards (6 Replies)
Discussion started by: RHCE
6 Replies

5. Red Hat

configure dns in centos

Hi, how do I set the DNS in centos. I don't mean of creating DNS server, but setting what should be the DNS server of centos. I mean to what server he should go in order to translate url into ip (6 Replies)
Discussion started by: programAngel
6 Replies

6. Solaris

How to Configure DNS bind 9 with Ldap back-end

My environmnet : solaris 10 u 7 sparc To configure DNS bind use Ldap as zone record database, I use bind 9.7.0 and sun directory 5.2 I do follow http://imil.net/docs/Configuring_DNS_zones_with_LDAP.txt and stuck at make install Error from bind log "database: error: unsupported database... (0 Replies)
Discussion started by: tien86
0 Replies

7. HP-UX

Configure DNS,NFS,NIS,LDAP and LVM(mirror,sparing and multipathing)

Hello All, I am a newbee in HP UX wanted to know how to configure DNS,NFS,NIS,LDAP and LVM(mirror,sparing and multipathing) in HP UX 11iv2 and v3 and i did go through some of the docs on hp.com but i think those are for experience UX users and i am new to this so if some one could just mention... (1 Reply)
Discussion started by: coolsami
1 Replies

8. Solaris

configure DNS server on solaris

Hello evrybody I need to know how i can implement and configure DNS server in solaris9 and i need to understand which files i modified it to do that Thanks all (8 Replies)
Discussion started by: asafwat
8 Replies

9. UNIX for Advanced & Expert Users

How to configure DNS

My OS is sun solaris7,(sun sparc),i want connect inernet and my computer in my company intranet.After i configure proxy server,i still can't conncet internet.I guess whether the DNS is configured correctly. who can help me???Thank you very much!!! (6 Replies)
Discussion started by: q30
6 Replies

10. IP Networking

trying to configure DNS address in Solaris

hi to all. I'm trying to use the sendmail command to generate some reports and I cant use it. The mails i try to send simply won't go out, instead I receive a response from the system sayng that the host is unknown. I think the problem is in the DNS configuration (or the IMAP/SMTP servers). ... (3 Replies)
Discussion started by: ldrojasm
3 Replies
Login or Register to Ask a Question