What is my DNS server command line?

What is the command to check DNS server in Cisco switch?

We have a Cisco 2800 series router. In our company we have a DNS server set up in the router and connected to our office network. The IP address of the DNS server is 192.168.

We want to check whether the DNS server is working or not. We use the following command: show dns server ip-address. This command works fine. However, we don't want to use the IP address of the router. Instead, we want to use the DNS server IP address (192.2). We also want to check the TTL (Time To Live) of the DNS server. Is there a command for that?

You can check the TTL with the show ip route command, if it is set correctly. You might need to reset the routing table (ip route flush cache) for the new IP address.

DNS server is configured on Cisco 2800 Series router and you want to check TTL of DNS server using the commands. I believe you need to read the documentation which is given on Cisco web site. Cisco website gives you all the info on the specific product which you are using.

You can check the TTL for the IP address of the DNS server in the same way as you did to check the IP address. Check the documentation on Cisco website for the command.

If you are using some sort of Cisco DHCP server then you can probably get the IP address of the server from the command show ip dhcp server.

What is my DNS server command line?

Where should I put my DNS servers, and how do I access it from a Windows command line? Do I just have to add them in the Internet Explorer/Firefox options for setting an alternate DNS server? The first step is to know what name resolution involves. DNS server is just like any other server in that it returns things based on queries. Normally a DNS server will be told what IP address something wants to resolve to, and it will return an IP (or a server address) to that client.

That's what a browser does: it gets an IP of a domain from your nameservers, and makes the DNS query and gets the data back. You can do that in your shell too, but it'll use system calls which are a whole lot harder than the DNS API which Windows comes with.

If you want to do this in your shell, you'll have to set up the resolver libraries and APIs and make your own calls. (On most BSDs the best resolver library is called resolv, on Linux it's libc, on Windows it's WINQUIRESDKDNSAPI). The resolver libraries may or may not give you a choice for selecting your nameserver, so you'll have to either hardcode that value in (and hope it doesn't break with a future Windows release) or use wmic or something else to detect the settings in the registry.

How to run DNS from command line?

I am a long time user of DNS servers, and would like to know how to run my own DNS server from the command line. I am using Ubuntu 10.04 LTS (Lucid Lynx). I am running DHCP on my network, but would like to set up my own DNS server so that it is authoritative for my network.

You can use BIND9. This post will show you how to install it on a machine: and this will get you started: When it's all installed, follow this guide to setup your own nameserver: If you want to use the standard Ubuntu tools to administer your DNS server, install the 'bind' package: sudo apt-get install bind9. The bind9 package is a meta-package containing several BIND daemons, including the default BIND9 daemon, which is the one you'll be using. There are several ways of starting the BIND9 daemon: # Start the daemon with a shell script: sudo service bind9 start. # Start the daemon with the 'service' command: # Start the daemon manually with init script: sudo /etc/init.d/bind9 start The daemon has several configuration files in /etc/bind. There are also additional BIND daemons available, which you can install separately (using apt-get) to provide a different BIND daemon for any special requirements, for example OpenLDAP or Postfix.

The daemons are in two main sections of the configuration files. The first section contains the authoritative data for your domain. This is where you define the servers which will host your domain.

Related Answers

What is the Cisco Umbrella DNS advantage?

Cisco Umbrella DNS is a highly secure IP address management solution that al...

What is Cisco SSL VPN?

If you're a network manager or network professional with limited understanding of cl...

Is DNS server a proxy server?

I am trying to understand what DNS server does. I am aware that DNS server do...