Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I need to know the addresses and ports of the Ubuntu DNS servers. How can I do this from the command line?

share|improve this question
add comment

3 Answers

up vote 6 down vote accepted

Command-line: $ cat /etc/resolv.conf

DNS servers listen by convention on port 53 TCP or UDP; UDP is used for most requests.

share|improve this answer
add comment

Command-Line:

nm-tool | grep DNS
share|improve this answer
add comment

If you mean your local dns servers:

cat /etc/resolv.conf

and for information as to what port a general service runs on you can grep /etc/services for dns

If you mean the ubuntu DNS servers for the domain just use nslookup

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.