I have set up my /etc/bind
to set up the following:
dig @127.0.0.1 +noall +answer SRV _my-sub._tcp.example.com
_my-sub._tcp.example.com. 300 IN SRV 0 0 12379 a0.example.com.
_my-sub._tcp.example.com. 300 IN SRV 0 0 22379 a1.example.com.
_my-sub._tcp.example.com. 300 IN SRV 0 0 32379 a2.example.com.
dig @127.0.0.1 +noall +answer a0.example.com a1.example.com a2.example.com
a0.example.com. 300 IN A 127.0.0.1
a1.example.com. 300 IN A 127.0.0.1
a2.example.com. 300 IN A 127.0.0.1
And now I want to edit my /etc/resolv.conf
to get the same results without @127.0.0.1
. How do I overwrite resolv.conf
to achieve this?
Thanks!
dig +noall +answer a0.example.com a1.example.com a2.example.com
Should return:
a0.example.com. 300 IN A 127.0.0.1
a1.example.com. 300 IN A 127.0.0.1
a2.example.com. 300 IN A 127.0.0.1