> Today, i configured bind dns and postfix mail server for my network.
> dns works well i.e name resolves well.
> the command host <hostname> gives proper answer.
> But, the command dnsdomanname gives nothing.
"hostname" should just show just your hostname, "hostname -f" should
show your full hostname.domain, and "hostname -d" should be just the
domain part (same as dnsdomainname).
> The posfix works only with the server.
> the port 25 is not visible from client systems.
> but the mail sent for internal users works well.
"localhost" is always yourself (127.0.0.1 loopback). So you certainly
e-mail address. You need some other hostname (unique from other PC's in
your domain) which /etc/hosts and DNS should point to an IP on your box
(possibly ethernet nic IP if static), or when I was on dialup with no
static IP I assigned my hostname to another loopback IP 127.0.0.2.
To see what IP:port postfix is listening on use "netstat -atn".
Local 0.0.0.0:25 means it is listening on port 25 of any interface. If
local is 127.0.0.1:25 that might be a default postfix setting for your own
safety. Check for inet_interfaces setting in postfix's main.cf (maybe at
Foreign 0.0.0.0:* means it accepts a connection from any IP and
Quote:> so, i suspect the problem may be in dns.
> how to get the dnsdomainname command work?
That might be based on the hostname.domain in /etc/HOSTNAME (not sure, it
simply works for me). Just be aware that network scripts may set that
file during boot or when bringing up an interface, so you may need to look
for a HOSTNAME setting in network related scripts.