You are on page 1of 3

DNS

Q.2 – Command to get the IP address ?


Ans 1.The nslookup Command
nslookup www.google.com
server : 10.25.0.4
addess : 10.25.0.4#53
non-authoiveritative answer :
www.google.com canonical name = www.l.google.com
name: www.l.google.com
address : 209.85.231.104
2. the dig command
Q3. What does the order specipy in /etc/host.conf file &
methods in it ?
Ans : order specify the sequence of name resolution
methods
Hosts checks for name in the local /etc/host file
Bind- use dns server for address
Q.4 full form
Ans : SOA-start of authority
NS-name server
CNAME – canonical name
Bind- berkeley internet name domain
Q-5 what does following section specify?
Options{} in named.conf and
Allow-query{} , notify in zone file reference
Ans :
Options : required network interfaces are specified
The options section of named.conf may be configured to listen
exclusively on its internal hidden localhost interface with an IP address
of 127.0.0.1
options {
listen-on port 53 { 127.0.0.1; };
};

In below example, we allow queries on any interface .


listen-on port 53 { any; };
allow-query

The allow-query directive defines the networks that are allowed to


query your DNS server for information on any zone. For example, to
limit queries to only your 192.168.1.0 network, you could modify the
directive to:

allow-query { 192.168.1.0/24; };

Notify
Controls whether named notifies the slave servers when a zone is updated. It accepts the
following options:
o yes — Notifies slave servers.
o no — Does not notify slave servers.
o — Only notifies slave servers specified in an also-notify list within a
explicit
zone statement

You might also like