Dears,
I am doing something fundamental fundamentally wrong with the configuration of name resolution in my FreeBSD 14.1-RELEASE-p5 box. In /etc/rc.conf, I have tried setting hostname to both a single string and to a FQDN string. In /etc/resolv.conf, I have told to use the local computer as the nameserver, and there are no other directives in resolv.conf. In /etc/hosts, I have told that 127.0.0.1 and ::1 are localhost localhost.thenameofmydomain and the short name for my server.
When I then send mail from a cron job using biabam, I can see in dnsmasq log (/var/log/dnsmasq.log), which has query logging enabled, that the computer is querying for the external mail server, mxavas.forpsi.com, but is adding an extra string to the end, and the extra string is the name of my domain. EDIT: However, my mail is sent out as it should, and I don't see an error message anywhere, including in root's local mailbox.
Dnsmasq has expand-hosts not on.
What am I doing wrong? How should I do it right?
Thank you.
I am doing something fundamental fundamentally wrong with the configuration of name resolution in my FreeBSD 14.1-RELEASE-p5 box. In /etc/rc.conf, I have tried setting hostname to both a single string and to a FQDN string. In /etc/resolv.conf, I have told to use the local computer as the nameserver, and there are no other directives in resolv.conf. In /etc/hosts, I have told that 127.0.0.1 and ::1 are localhost localhost.thenameofmydomain and the short name for my server.
When I then send mail from a cron job using biabam, I can see in dnsmasq log (/var/log/dnsmasq.log), which has query logging enabled, that the computer is querying for the external mail server, mxavas.forpsi.com, but is adding an extra string to the end, and the extra string is the name of my domain. EDIT: However, my mail is sent out as it should, and I don't see an error message anywhere, including in root's local mailbox.
Dnsmasq has expand-hosts not on.
What am I doing wrong? How should I do it right?
Thank you.