07-17-2008
You're not giving a FQDN for your machine in /etc/hosts, so sendmail will keep trying to find its name (domain name in /etc/resolv.conf). If that's not configured correctly it will fail (because there is no something.yahoo.com or other).
Instead put the FQDN in /etc/hosts directly:
10.3.2.7 something something.yahoo.com loghost
and then it won't matter what domain/search entry is in /etc/resolv.conf.
10 More Discussions You Might Find Interesting
1. Programming
I have a need to create a connection between an erlang node and my C program.
the name of an erlang node looks something like monitor@host1.ipc.co.za.
The piece of code I have to construct a node name looks like this:
char *hostname, *domainname, *nodename = "monitor", *thisfullnodename;
... (1 Reply)
Discussion started by: NanoSec
1 Replies
2. UNIX for Advanced & Expert Users
Hi,
I want a shell command through which I can parse an FQDN (Fully Qualified Domain Name) and check whether it is correct or not?
The FQDN can accept alphanumeric, . and - only.
I tried grep -E "^|\-|." <file name>, but I am not able to get the correct result.:confused:
Please provide... (1 Reply)
Discussion started by: g_rohit7
1 Replies
3. Shell Programming and Scripting
How would I reverse a list of fqdn and comma delimited to 5 levels but keep a number at the end?
Input:
aa.bb.cc.dd.com,78
Output:
dd,cc,bb,aa,,78
thanks & regards (3 Replies)
Discussion started by: hazno
3 Replies
4. Solaris
I have some Solaris 10 machines that cannot send an email without @domain added. For instance, myusername@host.com will work, but just using myusername will not. I also have some Solaris 8 machines, but I can send emails with or without the @domain added. Does anyone know what is making sendmail on... (0 Replies)
Discussion started by: njhardc0re
0 Replies
5. Shell Programming and Scripting
I'm working on a rather large script atm (it already takes 9 arguments). As such, I need to obtain both a server name and domain from the FQDN. From this, I want to both populate the hostname of the server, as well as the domain line in the /etc/resolv.conf file.
Obviously, this isn't working. I... (10 Replies)
Discussion started by: msarro
10 Replies
6. Shell Programming and Scripting
Suppose I am in one server A .I want to know the FQDN of another host B then how can I get the FQDN of that host B from host A. (1 Reply)
Discussion started by: maitree
1 Replies
7. Shell Programming and Scripting
Hello,
Beginning with shell scipting, I'm trying to find in a csv file, the lines where the field related to hostname is displayed as an FQDN intead the hostname. (some lines are correct) and the to correct that inside the file:
Novell,11.0,UNIX Server,bscpsiws02,TxffnX1tX1HiDoyBerrzWA==... (2 Replies)
Discussion started by: Wonto
2 Replies
8. Solaris
Help with parsing regex in tripwire:
the rule is" This test verifies that all exported file systems found in /etc/exports specify a fully qualified domain name containing "thecss.com" or a NIS netgroup.."
regex that does not work is :
... (1 Reply)
Discussion started by: bathija12
1 Replies
9. AIX
Hey All,
We have defined abc.this.that in:
/etc/named.conf
and corresponding files but after the change that we verified through dig -x this.that ptr all is resolving correctly. However in the /var/log/named/named.log file we still see entries for:
4-May-2015 12:15:30.390 queries:... (6 Replies)
Discussion started by: Devyn
6 Replies
10. AIX
Hey All,
ldapsearch takes minutes when using FQDN vs IP. What could be some of the reasons for that?
Cheers,
DH (13 Replies)
Discussion started by: Devyn
13 Replies
LEARN ABOUT REDHAT
host.conf
HOST.CONF(5) Linux System Administration HOST.CONF(5)
NAME
host.conf - resolver configuration file
DESCRIPTION
The file /etc/host.conf contains configuration information specific to the resolver library. It should contain one configuration keyword
per line, followed by appropriate configuration information. The keywords recognized are order, trim, multi, nospoof, and reorder. These
keywords are described below.
order This keyword specifies how host lookups are to be performed. It should be followed by one or more lookup methods, separated by com-
mas. Valid methods are bind, hosts, and nis.
trim This keyword may be listed more than once. Each time it should be followed by a single domain name, with the leading dot. When
set, the resolv+ library will automatically trim the given domain name from the end of any hostname resolved via DNS. This is
intended for use with local hosts and domains. (Related note: trim will not affect host- names gathered via NIS or the hosts file.
Care should be taken to ensure that the first hostname for each entry in the hosts file is fully qualified or non-qualified, as
appropriate for the local installation.)
multi Valid values are on and off. If set to on, the resolv+ library will return all valid addresses for a host that appears in the
/etc/hosts file, instead of only the first. This is off by default, as it may cause a substantial performance loss at sites with
large hosts files.
nospoof
Valid values are on and off. If set to on, the resolv+ library will attempt to prevent hostname spoofing to enhance the security of
rlogin and rsh. It works as follows: after performing a host address lookup, resolv+ will perform a hostname lookup for that
address. If the two hostnames do not match, the query will fail.
spoofalert
If this option is set to on and the nospoof option is also set, resolv+ will log a warning of the error via the syslog facility.
The default value is off.
reorder
Valid values are on and off. If set to on, resolv+ will attempt to reorder host addresses so that local addresses (i.e., on the
same subnet) are listed first when a gethostbyname(3) is performed. Reordering is done for all lookup methods. The default value
is off.
FILES
/etc/host.conf
Resolver configuration file
/etc/resolv.conf
Resolver configuration file
/etc/hosts
Local hosts database
SEE ALSO
gethostbyname(3), hostname(7), resolv+(8), named(8)
Debian GNU/Linux 1997-01-02 HOST.CONF(5)