?
Solved

Which dns server is assigned to my eth0 by dhcp

Posted on 2003-03-27
8
Medium Priority
?
285 Views
Last Modified: 2011-09-20
I don't know how to see which dns server is assigned to my eth0 port on my linux machine. With ifconfig I can see the ip-address, the mac-address etc. but not which dns server is assigned. How can I resolve this? Like in Windows you can see with winipcfg on win9x and with ipconfig/all on nt,2k,xp what dns server is assigned to the nic.
Please help.... i'm a newbie on linux!
0
Comment
Question by:RudiV
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 9

Expert Comment

by:tkalchev
ID: 8218464
The DNS servers are located in /etc/resolv.conf.

The format is :

nameserver IP_ADDRESS_OF_DNS
nameserver IP_ADDRESS_OF_DNS1
...

You can edit this file if you want to change the DNS
0
 
LVL 1

Expert Comment

by:mr_mpz
ID: 8221126
hi
dns servers for your linux computer is saved in under file

/etc/resolve.conf

format for this file is :

domain  yourdomain
nameserver   your-dns-server


you must edit this file
good luck
MPZ
0
 
LVL 9

Expert Comment

by:tkalchev
ID: 8223367
Hi mr_mpz, the file is called /etc/resolv.conf, doesn't it :) ?
0
Stressed Out?

Watch some penguins on the livecam!

 

Expert Comment

by:CleanupPing
ID: 9077584
RudiV:
This old question needs to be finalized -- accept an answer, split points, or get a refund.  For information on your options, please click here-> http:/help/closing.jsp#1 
EXPERTS:
Post your closing recommendations!  No comment means you don't care.
0
 
LVL 9

Expert Comment

by:tkalchev
ID: 9102296
My comment is right, mr_mpz's also :)
0
 

Accepted Solution

by:
PAQ_Man earned 0 total points
ID: 13550953
PAQed with no points refunded (of 50)

PAQ_Man
Community Support Moderator
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question