Sponsored Content
Full Discussion: Host name Lookup Failure
Operating Systems Linux Host name Lookup Failure Post 302984822 by jegaraman on Tuesday 1st of November 2016 06:45:00 AM
Old 11-01-2016
Host name Lookup Failure

Dear All ,

I am able to resolve my server using its ipaddress from other machines.

But not from the same machine.

But I have updated the DNS entry in /etc/resolv.conf.

Even SSH login from other server shows Hostname Lookup Failure.

Please help me on this.

Rj
 

10 More Discussions You Might Find Interesting

1. IP Networking

QNX host cannot ping SCO host, vice versa

The problem I am facing now is that the QNX host could not ping the SCO host and vice versa. They are in the same domain, ie, 172.20.3.xx. As I am very new to Unix, I guess I must have missed out some important steps. Pls help... Thanx alot (2 Replies)
Discussion started by: gavon
2 Replies

2. UNIX for Dummies Questions & Answers

add route gives target: Host name lookup failure

We need to add our remote office to our linux routing table. Our internal office ip addresses are all in the range of 198.9.200.x with an subnet mask of 255.255.255.0 the remote office has ip addresses in the range of 192.168.0.0 and also a subnet mask of 255.255.255.0 when i use the... (3 Replies)
Discussion started by: progressdll
3 Replies

3. UNIX for Advanced & Expert Users

Clueless about how to lookup and reverse lookup IP addresses under a file!!.pls help

Write a quick shell snippet to find all of the IPV4 IP addresses in any and all of the files under /var/lib/output/*, ignoring whatever else may be in those files. Perform a reverse lookup on each, and format the output neatly, like "IP=192.168.0.1, ... (0 Replies)
Discussion started by: choco4202002
0 Replies

4. Solaris

Host name lookup failure.

Hi Gurus I am getting the following message continuosly in my /var/adm/messages file: Aug 3 13:31:21 mumux102 sendmail: n6UHxxTm019703: to=postmaster, delay=3+14:00:01, xdelay=00:00:00, mailer=relay, pri=30730707, relay=fisbomrelay.fnfis.com, dsn=4.0.0, stat=Deferred: Name server:... (3 Replies)
Discussion started by: Hari_Ganesh
3 Replies

5. UNIX for Advanced & Expert Users

Help! How to find the local host after few ssh hops to remote host???

I do a ssh to remote host(A1) from local host(L1). I then ssh to another remote(A2) from A1. When I do a who -m from A2, I see the "connected from" as "A1". => who -m userid pts/2 2010-03-27 08:47 (A1) I want to identify who is the local host who initiated the connection to... (3 Replies)
Discussion started by: gomes1333
3 Replies

6. Solaris

Mail issue solution query- host map: lookup (domain): deferred

Hi all I had a mail issue earlier today where I was not receiving any emails from the servers of one of our clients. The mail queue just showed this: -----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient----------- o8S7eSpp020274* 5858 Tue Sep 28 10:42... (0 Replies)
Discussion started by: notreallyhere
0 Replies

7. Shell Programming and Scripting

Store Host lookup in variable ("on the fly")

Hi, I'm new here. I was wondering why I can't store a host lookup in a variable. for line in $(< blacklist) do STOREIP=host $line; if ]; then $line >> blacklist2; else $line >> blacklist3; fi done Result: "ip" command not found .. so how would I store the host lookup in the... (2 Replies)
Discussion started by: sOliver
2 Replies

8. Solaris

DNS Lookup failure:

I am facing typical problem with apache as proxy. my solaris box was running with apache1.3, due to security issue i have updated to apache 2.2. I don't have any DNS set up onmy network. I was able to connect to internet apache 1.3 working as proxy server. http and https are working fine. when... (3 Replies)
Discussion started by: sns_sns
3 Replies

9. UNIX for Dummies Questions & Answers

boot up failure unix sco after power failure

hi power went out. next day unix sco wont boot up error code 303. any help appreciated as we are clueless. (11 Replies)
Discussion started by: fredthayer
11 Replies

10. UNIX for Beginners Questions & Answers

Problems host name lookup failure sendmail

Hi I have a problem in sendmail Freebsd when sending emails to yahoo as an example, I get: Sep 5 10:05:43 local50 sm-mta: STARTTLS=client, error: connect failed=-1, SSL_error=1, errno=0, retry=-1 Sep 5 10:05:43 local50 sm-mta: STARTTLS=client: 43926:error:1407742E:SSL... (3 Replies)
Discussion started by: rickyarge92
3 Replies
res_init(3)						     Library Functions Manual						       res_init(3)

NAME
res_init - Searches for a default domain name and Internet address LIBRARY
Standard C Library (libc.a, libc.so) SYNOPSIS
#include <sys/types.h> #include <netinet/in.h> #include <arpa/nameser.h> #include <resolv.h> void res_init ( void ); DESCRIPTION
The res_init() function reads the /etc/resolv.conf file for the default domain name and the Internet address of the initial hosts running the name server, even if the name server is not functioning. The res_init() function is one of a set of subroutines that form the resolver, a set of functions that resolve domain names. All resolver functions use the /usr/include/resolv.h header file, which defines the _res data structure. The res_init() function stores domain name information in the _res data structure. NOTES
If the /etc/resolv.conf file does not exist, the res_init() function attempts name resolution using the local /etc/hosts file. If the sys- tem is not using a domain name server, the /etc/resolv.conf file should not exist. The /etc/host file should be present on the system even if the system is using a name server. In this instance, the file should contain the host IDs that the system requires to function even if the name server is not functioning. FILES
Contains the name server and domain name. Contains hostnames and their addresses for hosts in a network. This file is used to resolve a hostname into an Internet address. RELATED INFORMATION
Functions: dn_comp(3), dn_expand(3), dn_find(3), dn_skipname(3), _getlong(3), _getshort(3), putlong(3), putshort(3), res_mkquery(3), res_query(3), res_search(3), res_send(3). delim off res_init(3)
All times are GMT -4. The time now is 06:14 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy