Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
How to setup FQND hostname when using a DNS wildcard A record?
Following this tutorial How To Set Up a Host Name with DigitalOcean, my droplet is setup as:
Droplet IP: 188.8.131.52
Droplet name: example1
A record name: @
A record IP: 184.108.40.206
A record: example1.com. 1800 IN A 220.127.116.11
CNAME name: *
CNAMe hostname: EXAMPLE1.COM.
CNAME: *.example1.com. 1800 IN CNAME example1.com.
$ hostname -f
$ cat /etc/hosts
I know is tricky, but I will add a MX record mail1.example1.com and setup Postfix, Dovecot etc. on the same droplet.
Can I just add to /etc/hosts, something like “18.104.22.168 mail1.example1.com mail1” or that will not work?
Will I get in trouble with that DNS wildcard A record?
PS: I’m not using IPv6
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×