- Linux Administration Cookbook
- Adam K. Dean
- 92字
- 2021-07-02 14:24:31
Getting ready
Connect to centos1 and check that your domain resolution is already working by pinging an address.
I'm in the UK, so I default to using the BBC for my tests:
$ ping bbc.co.uk
PING bbc.co.uk (151.101.0.81) 56(84) bytes of data.
64 bytes from 151.101.0.81 (151.101.0.81): icmp_seq=1 ttl=63 time=30.4 ms
If yours isn't working for whatever reason, destroy and recreate your VMs.
Once you're sure you can ping a domain, install dig (and the myriad of other tools that come along with this package):
$ sudo yum install -y bind-utils