Sponsored Content
Top Forums Shell Programming and Scripting geting server name(ipaddress) Post 302093981 by BOFH on Tuesday 24th of October 2006 09:01:04 AM
Old 10-24-2006
Assuming the server name is in DNS, you should be able to use nslookup or dig to get the server name from the ip address. Not all servers are in DNS though.

Carl
 

10 More Discussions You Might Find Interesting

1. HP-UX

how to find ipaddress

Hi, Pls tell me any command in Hp-unix to find out the machine ipaddress Thanks, shruti (14 Replies)
Discussion started by: shruti_mgp
14 Replies

2. Solaris

I am geting error while trying to stop managed server of WEB LOGIC

Dear All, I am geting error while trying to stop managed server of WEB LOGIC through the command stop_wls managed1_wlsdom02.Can anyone tell me why I am geting this error?managed1_wlsdom02.pid exists at the path mentioned. Do you need any other details?... (0 Replies)
Discussion started by: ASHISH MISHRA
0 Replies

3. Shell Programming and Scripting

ipaddress in HP-UX

Hi, How can I figure out the IP address of my node in HP-UX? Here is uname -a: /throra10 >uname -a HP-UX finprod B.11.23 U ia64 3832216299 unlimited-user license This is to launch Xterminal. Thanks. (7 Replies)
Discussion started by: RockyC123
7 Replies

4. Shell Programming and Scripting

geting the real path

Hi there, Is there any way to obtain a real path from a weird path. For example : /foo/../bar/ -> /bar/ /foo/. -> /foo/ Thanks in advance Santiago (5 Replies)
Discussion started by: chebarbudo
5 Replies

5. UNIX for Advanced & Expert Users

how linux knows ipaddress of it?

which kernel data structure stores ipaddress. and how to change the ipaddress other that ifconfig. in case of dhcp client daemon how linux automatically assigns ipaddress fetched? Would some one answer these questions please? (3 Replies)
Discussion started by: Gopi Krishna P
3 Replies

6. Shell Programming and Scripting

geting user input from php and using perl for execution

I am using festival speech synthesis system and I would like to allow user input in a browser. This will be taken by a php page which is then supposed to pass the input text to a perl script. The perl script should pass this text to the festival engine by executing a unix command. this in turn... (2 Replies)
Discussion started by: wairimus
2 Replies

7. Shell Programming and Scripting

geting a value out of awk script

the value of flag is reset inside the awk statments and is not getting echoed out of it. how can this be done?? #!/bin/ksh flag=0 awk -F '' '$2 == "ABCD" && $6 == "MNOP"{flag=1}' file.xml echo $flag I am always getting the value of flag as "0" , even after the $2 is "ABCD" and $6 is... (2 Replies)
Discussion started by: skyineyes
2 Replies

8. AIX

Geting a value dynamically from topas

Hi all, I got an idea to get a value (like Syscall or %comp details for example)dynamically from topas. Is there any way to do this. I guss there must be some door opened for this. I tried running topas and redirecting to a file but in vain. The idea is, script should run topas in... (4 Replies)
Discussion started by: jayadeava
4 Replies

9. UNIX for Advanced & Expert Users

Kernel Modules Not geting built

I installed in VM the Mandriva Linux with 2.6.27 kernel. But presently when I fire make the modules .ko does not get built. I get the following output on firing command in the kernel module folder. $ make Building first_driver.c ... make: Entering directory... (1 Reply)
Discussion started by: rupeshkp728
1 Replies

10. Shell Programming and Scripting

Not able to find the perfect code...Geting confused in between

I have to find last delimiter in each line of a file and store the value after the last '/' in a variable in ksh script...Pls Pls help me:(The file is as shown below: /opt/apps/cobqa/apps/abadv/bind/advc0007.bnd /opt/apps/cobqa/apps/abbrio/bind/naac6115.bnd... (5 Replies)
Discussion started by: bhavanabahety
5 Replies
avahi-dnsconfd.action(8)				      System Manager's Manual					  avahi-dnsconfd.action(8)

NAME
avahi-dnsconfd.action - avahi-dnsconfd action script SYNOPSIS
/home/lennart/tmp/avahi/etc/avahi/avahi-dnsconfd.action DESCRIPTION
avahi-dnsconfd.action is the action script that is called whenever a new unicast DNS server is found or removed by avahi-dnsconfd. The default script as shipped with avahi patches /etc/resolv.conf to reflect the changed unicast DNS server configuration. PARAMETERS
argv[1] Contains the character "+" if the DNS server is new, "-" when it shall be removed from the DNS server list. argv[2] The IP address of the DNS server. argv[3] Numerical network interface number this DNS server was found on. argv[4] Numerical protocol number this DNS server was found on. (usually 2 for IPv4 and 10 for IPv6) ENVIRONMENT
AVAHI_INTERFACE Contains the textual interface name the corresponds with argv[3]. (e.g. "eth0") AVAHI_INTERFACE_DNS_SERVERS Contains a list of all DNS servers that avahi-dnsconfd found on the interface $AVAHI_INTERFACE, separated by spaces. AVAHI_DNS_SERVERS Contains a list of all DNS server that avahi-dnsconfd found on all interfaces, separated by spaces. AUTHORS
The Avahi Developers <avahi (at) lists (dot) freedesktop (dot) org>; Avahi is available from http://avahi.org/ SEE ALSO
avahi-dnsconfd(8), avahi-daemon(8) COMMENTS
This man page was written using xml2man(1) by Oliver Kurth. Manuals User avahi-dnsconfd.action(8)
All times are GMT -4. The time now is 07:24 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy