03-27-2001
Check /etc/hosts
It should contain your fully qualified domain name.
Ex:
# IP hostname
X.X.X.X mybox.mydomain.com
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Currently our Apache log files are huge, I want to put say a month's time limit on this, then when it hits the end of the month I would like it to start over writing.
Does anyone know where the config file is for this and what its called? I also want to do exactly the same on wtmp config (who... (1 Reply)
Discussion started by: Webwitch
1 Replies
2. HP-UX
Does anyone have a list of key config files and the respective paths for HP-UX? Or does anyone know where I can get a list similar to this?
Thanks,
TOdd (0 Replies)
Discussion started by: toddjameslane
0 Replies
3. Solaris
Hi ,
I am trying to configure a private LAN and corporate LAN on the same machien on Solaris 10.
How can I achieve this?
Thanks (1 Reply)
Discussion started by: deedee
1 Replies
4. Shell Programming and Scripting
Hi,
I want to use a config file as the base file and parse over the values of country and city parameters in the config file and generate separate config files as explained below.
I will be using the config file as mentioned below:
(config.txt)
country:a,b
city:1,2
type:b1... (1 Reply)
Discussion started by: clazzic
1 Replies
5. IP Networking
Hi,
We have a website running on a local centos 5.4 surfer, static IP.
The domain.com uses no-ip.com to take care of the DNS, it forwards all to my server.
My router receives the port 80 call, routes it to my server and the world can see domain.com perfectly fine.
However, we cannot see... (3 Replies)
Discussion started by: lawstudent
3 Replies
6. Shell Programming and Scripting
Hi I am new to shell scripting. There is a requirement to write a shell script to meet follwing needs.Prompt reply shall be highly appreciated.
script that will compare two config files and produce 2 outputs - actual config file and a report indicating changes made.
OS :Susi linux ver 10.3.
... (4 Replies)
Discussion started by: muraliinfy04
4 Replies
7. Shell Programming and Scripting
Hi,
I have 2 perl SubRoutines (sub 1 and sub 2). I created two perl modules for these (Sub1.pm and Sub2.pm).
How can I include these in a config file (say Config.cfg) and call the config file in my main script Rename.pl to use the 2 subroutines?
Right now here are the content of Config.cfg... (1 Reply)
Discussion started by: CCFP
1 Replies
8. UNIX for Advanced & Expert Users
Hi All,
I'm bit confused with a script
Any help would be appreciated
I have a config file say config.cfg and iam loading config file in My_Script.sh..The script name is My_Script.sh.
My_Script.sh and config.cfg are in same directory...My_Script.sh is run on the crontab
50 01 * * * &&... (2 Replies)
Discussion started by: selvam
2 Replies
9. Red Hat
I use red hat linx ES 4 ,5 , how can I start up attached screen to config the lan interface in command mode ???
Please advice in detailed ?? (1 Reply)
Discussion started by: chuikingman
1 Replies
10. Windows & DOS: Issues & Discussions
Hi Team,
My new build configuration always looking for the files from the build where i copied from.
please help me to resolve this.
I am using Visual studio 2008.It has Qt 4.8. plugins,qml,C++ development
I created new debug_new build configuration with additional preprocessor from the... (1 Reply)
Discussion started by: SA_Palani
1 Replies
LEARN ABOUT REDHAT
lwres_getnameinfo
LWRES_GETNAMEINFO(3) LWRES_GETNAMEINFO(3)
NAME
lwres_getnameinfo - lightweight resolver socket address structure to hostname and service name
SYNOPSIS
#include <lwres/netdb.h>
int lwres_getnameinfo(const struct sockaddr *sa, size_t salen, char *host, size_t hostlen, char *serv, size_t servlen, int flags); .SH
"DESCRIPTION"
This function is equivalent to the getnameinfo(3) function defined in RFC2133. lwres_getnameinfo() returns the hostname for the struct
sockaddr sa which is salen bytes long. The hostname is of length hostlen and is returned via *host. The maximum length of the hostname is
1025 bytes: NI_MAXHOST.
The name of the service associated with the port number in sa is returned in *serv. It is servlen bytes long. The maximum length of the
service name is NI_MAXSERV - 32 bytes.
The flags argument sets the following bits:
NI_NOFQDN
A fully qualified domain name is not required for local hosts. The local part of the fully qualified domain name is returned
instead.
NI_NUMERICHOST
Return the address in numeric form, as if calling inet_ntop(), instead of a host name.
NI_NAMEREQD
A name is required. If the hostname cannot be found in the DNS and this flag is set, a non-zero error code is returned. If the
hostname is not found and the flag is not set, the address is returned in numeric form.
NI_NUMERICSERV
The service name is returned as a digit string representing the port number.
NI_DGRAM
Specifies that the service being looked up is a datagram service, and causes getservbyport() to be called with a second argument of
"udp" instead of its default of "tcp". This is required for the few ports (512-514) that have different services for UDP and TCP.
RETURN VALUES
lwres_getnameinfo() returns 0 on success or a non-zero error code if an error occurs.
SEE ALSO
RFC2133, getservbyport(3), lwres(3), lwres_getnameinfo(3), lwres_getnamebyaddr(3). lwres_net_ntop(3).
BUGS
RFC2133 fails to define what the nonzero return values of getnameinfo(3) are.
BIND9 Jun 30, 2000 LWRES_GETNAMEINFO(3)