Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Which dns server is assigned to my eth0 by dhcp

Posted on 2003-03-27
8
Medium Priority
?
291 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
6 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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
With just a little bit of  SQL and VBA, many doors open to cool things like synchronize a list box to display data relevant to other information on a form.  If you have never written code or looked at an SQL statement before, no problem! ...  give i…
Suggested Courses
Course of the Month11 days, 2 hours left to enroll

572 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