[SOLVED] dns.hostname reading wrong!

Abdelrahman

Member
Dec 9, 2018
19
1
8
35
Hello,

I have a problem with those variables, they're reading wrong from the system

my hostname is : pmg.xxx.com and it's already set here /etc/hostname pmg.xxx.com

in /etc/hosts the hostname set as following

IP address pmg.xxx.com pmg
the problem is in pmgconfig dump
dns.domain = pmg.xxx.com -- > which is correct
dns.hostname = pmg ---> which is incorrect and it should be pmg.xxx.com
dns.fqdn = pmg.pmg.xxx.com ---> whichis incorrect and it should be pmg.xxx.com

I tried

pmgconfig sync --restart 1
restarting the server
restarting pmg services after any changes
reinstalling pmg

same issue, btw, I'm using AWS EC2

Any ideas where's the issue coming from?
 
proxmox mail gateway has it own section, not sure you will get help here ;)

the domain needs to change - fqdn=hostname.domain
domain needs to be xxx.com only
Oh, I'm sorry you're right, I will inform the moderator.
hmmm, domain where exactly? which file? because hostname is pmg.xxx.com
 
  • Like
Reactions: Abdelrahman
It helps a lot!, I'm not sure why the PMG develops makes it like that and not used clear variables

Thank you :)
PMG uses the search-domain from /etc/resolv.conf to create the fqdn:
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#_configuration_files_overview

dns.hostname is meant to be only the short hostname
dns.domain name is meant to be only the domain part
dns.fqdn = dns.hostname + '.' + dns.domain (+meaning string concatenation)

I hope this helps!
 
  • Like
Reactions: Stoiko Ivanov