2 :53 dns

# guessing domain for this machine as bank.htb and adding to /etc/hosts

# nslookup fails
$ nslookup
> server 10.10.10.29
Default server: 10.10.10.29
Address: 10.10.10.29#53
> 10.10.10.29
** server can't find 29.10.10.10.in-addr.arpa: NXDOMAIN

# checking zone transfer
$ host -l bank.htb 10.10.10.29
Using domain server:
Name: 10.10.10.29
Address: 10.10.10.29#53
Aliases:

bank.htb name server ns.bank.htb.
bank.htb has address 10.10.10.29
ns.bank.htb has address 10.10.10.29

$ dig axfr @10.10.10.29 bank.htb

; <<>> DiG 9.16.15-Debian <<>> axfr @10.10.10.29 bank.htb
; (1 server found)
;; global options: +cmd
bank.htb.               604800  IN      SOA     bank.htb. chris.bank.htb. 5 604800 86400 2419200 604800
bank.htb.               604800  IN      NS      ns.bank.htb.
bank.htb.               604800  IN      A       10.10.10.29
ns.bank.htb.            604800  IN      A       10.10.10.29
www.bank.htb.           604800  IN      CNAME   bank.htb.
bank.htb.               604800  IN      SOA     bank.htb. chris.bank.htb. 5 604800 86400 2419200 604800
;; Query time: 72 msec
;; SERVER: 10.10.10.29#53(10.10.10.29)
;; WHEN: Wed Aug 04 23:40:04 PDT 2021
;; XFR size: 6 records (messages 1, bytes 171)

# adding to /etc/hosts

Last updated