General :: Nc -v Somehost.example.com 22 - Returns - Nc - Getaddrinfo - Name Or Service Not Known

Nov 24, 2010

I have this issue: "nc -v <ip-address> 22" works fine, but "nc -v <fqdn> 22" fails with error message "nc: getaddrinfo: Name or service not known". However, "host <fqdn>" works fine, so name resolution works. So I have a working name resolution, but nc (netcat) doesn't seems to be using it or something. Same kind of issue with "ping <fqdn>". Does anyone know how come name resolution works, but utilities such as nc and ping doesn't?

View 2 Replies


ADVERTISEMENT

Networking :: Getaddrinfo() Apparently Not Working ?

Jan 18, 2010

I have an issue with cfservd, from the cfengine package not listening on both ipv4 and ipv6. Tracing through the source indicated that the issue was with the getaddrinfo() call. I have used the example code on the man page and can confirm that it doesn't work as expected on either Fedora 12, Fedora 10 or CentOS 5.3

The servers I am testing on have both ipv4 and ipv6 enabled and working. i.e. I can ssh to them using either -4 or -6 and netstat -a shows 0.0.0.0:22 and :::22

Running the example code on the Fedora servers results in only a single IPv4 address structure being returned by the getaddrinfo call and hence only listening on the one protocol. Strangely, on the CentOS server only the IPv6 address structure is returned.

I need both IPv4 and IPv6 for cfengine but am at a complete loss as to how to get it to work when the issue appears to be something fundamentally wrong at the OS level.

View 1 Replies View Related

Server :: Reverse Mapping Checking Getaddrinfo For Failed?

Aug 28, 2010

I keep getting the error "reverse mapping checking getaddrinfo for fileserver.0.0.10.in-addr.arpa [10.0.0.10] failed - POSSIBLE BREAK-IN ATTEMPT!" in /var/log/auth.log I have a DNS (bind9) setup on my Linux router with the following config:

Code:
router:~# less /etc/bind/named.conf.local
// Local zone definitions here.
zone "0.0.10.in-addr.arpa" {
type master;
file "/etc/bind/db.0.0.10";

[Code]...

View 1 Replies View Related

General :: Will Command Service Httpd Restart Apache Service?

Dec 25, 2009

will the command service httpd restart the apache service if i enable httpsd service in graphical mode

View 12 Replies View Related

General :: How To Delete Carriage Returns In Vi

Jan 13, 2010

i assumed :i insert mode would allow to simply back space, no appearently not? it seems none of the websites anywhere on earth mention how to delete a carriage return in vi.

View 3 Replies View Related

General :: Command Returns Too Much Of System Time

Aug 20, 2009

I use the time command to measure the wall-clock time of a GPU implementation of an algorithm. When I time the CPU execution of the algorithm time returns a negligible sys time. However, when I time the GPU execution time returns a sys time that is around 20-30% of the total time. If that time was comparable with the negligible sys time of the CPU I would achieve a speedup of a few times higher.

I suspect that the increased sys time is because of the GPU usage, which, I assume, takes some time for the OS because of the drivers etc. I am not sure though, and it is important to figure this out because it will improve my results a lot if I can ignore the sys time and use just the user time for speedup calculations. Also, is there a way to see, in detail, what is the sys running and takes so much time. I am thinking that I might be able to see if it is the driver indeed that causes this delay.

View 6 Replies View Related

General :: Grep - A-Z - Returns Unmatched Lines ?

Feb 21, 2011

Does anyone know why something like:

echo lowercase | grep [A-Z]

Would still return the lowercase line even tho there is no match?

Using --color will show there is no match but the line is still returned.

I am still new but from what i've learned this should not work like that. ubuntu 10.10

View 13 Replies View Related

General :: Installation Of Wxpython Source Returns - Error

Jan 19, 2010

I am trying to install wxpython from source package when ran ./configure command it came up with a strange message which says

Code:

Code:

View 8 Replies View Related

General :: Shell Script Returns Error When Using 'source'

Mar 21, 2011

For some reason the script below works fine when I run it directly but when I run is using source, I get a not found error?

With source: (line 11 is where the 'test' statement is)

Quote:

gtonder@sydlnx03:~> source set_aliases.sh -v 11:31AM
1
set_aliases.sh

[Code].....

View 6 Replies View Related

General :: Using / Usr / Bin / Time Always Returns 0 When Getting Maximum Resident Memory?

Mar 5, 2010

First time here at LQ, so if the post is in the wrong place, this is a bit programming related. I've been trying to find the maximum resident memory of a process in a memory constraint situation.

Instead of using top, or ps, which gives me real-time snapshot at the memory usage of a process, is there a way to determine the maximum resident memory used by a process? /usr/bin/time seem to provide this functionality within the format string

[Code]...

The minor page-fault is suspicious, does that mean memory is being used.. but not recorded? if so, how can I know how much memory is being mapped?

View 3 Replies View Related

General :: Change Boot Sequence - Returns A Blank Screen

Sep 26, 2010

I want to change the Boot sequence in Ubuntu 10.04.

In the past I have used

Quote:

But with 10.04 this returns a blank screen. I assume something has changed.

View 3 Replies View Related

General :: Startvnc, Arch, E17, Returns Error, Picture Inside?

Mar 20, 2011

When I type the command

Code:
startvnc
I get the following error

[code]....

View 8 Replies View Related

General :: Python Script Using Tar From A List Returns Error: Has No Attribute 'startswith'

Apr 4, 2011

create a tar file from a list? My script returns the error: AttributeError: 'list' object has no attribute 'startswith' I want to create a compressed tar file containing the directory /usr/lib and the files in the list assigned to variable b.

code:

import tarfile
tar = tarfile.open("backup.gz", "w:gz")

[code]....

View 3 Replies View Related

General :: SSH Command Mode - Flow Of Execution Returns To Bash Shell

Aug 13, 2009

I want to use ssh to execute a command and to wait endlessly to log everything (in file) that comes as a stream of the connected server. But unfortunately, in the manual its written "If command is specified, it is executed on the remote host instead of a login shell"

So what happens is that when I specify my command:
ssh user@server "my_command"

It executed the command and the flow of execution returns to bash shell. So basically my session ends right after the command is executed. This happens only in case I specify command in the command line. If I login into ssh manually and then type "my_command", then the session doesn't end. I want the ssh not to exit, because after "my_command" executes, I want to capture everything in the session.

View 3 Replies View Related

General :: Boot Disk - Returns Kernel Panic - Not Syncing Cpu Context Corrupt

Mar 6, 2010

I am a Windows 7 user. I have two machines a laptop & a new bench top. Both machines run & boot Windows 7 very well. I use a very good program to clone my Hard Drive to an external USB drive. called Macrium Reflect. It is free and is a dream to use & very fast. This program creates a Linux based boot disk, which will allow you to find a backup clone file on an external drive to restore your hard drive. It works a treat on my laptop & has saved my bacon many times when I have messed things up fiddling with the registry etc.

The problem I am having is that my new desktop will not boot from the start up CD & returns the error kernel panic,not syncing cpu context corrupt. & then just tries to reboot again. I don't know what this problem relates to whether it is the computer hardware or the Linux CD or both. My laptop with the same OS does not have a problem, It is an Acer Aspire 5920G with 1.6ghz Intel dual core processor & 2gig Ram. The bench top has an Intel Dual core 3.3ghz processor, Zotac mother board & 4gig of Ram. both machines are running 32 bit OS.

I have browsed through the posts on this forum with people having the same error at boot, but as I am not using Linux & only using a boot CD I didn't think it appropriate to but into their threads. So I am hoping if some one can tell me is this a hardware issue or a Linux/New dual core CPU/ or Bios/Mother board issue. If it is a Linux issue then my Laptop surely would not boot would it? My bench top is only a week old and guaranteed, should I be sending it from Adelaide back to Sydney(purchased online from MWave) for fault inspection? or just take to a local Technician for a diagnosis. I am not having any hardware problem running Windows 7.

View 4 Replies View Related

Ubuntu Servers :: Perform An Action Before A Service Starts And After A Service Stops

Sep 10, 2010

I am running Server 10. I have a requirement to perform an action before the MySQL service starts, and perform another action after MySQL service stops.

I found the init script for MySQL under /etc/init/mysql.conf. I added my thing to the pre-start script there and works fine.

I am having trouble finding the script that stops the server so I can modify.

View 1 Replies View Related

Red Hat / Fedora :: Shows Unrecognized Service After Restart Service Smb

Feb 28, 2010

i can smb in centos 5 and i run service smb restart, it shows :smb: unrecognized service..... i run rpm -qa |grep samba,it shows

samba-common-3.0.33-3.7.el5
samba-client-3.0.33-3.7.el5
.....

View 2 Replies View Related

Fedora :: Start A Service Before Network Service?

Nov 6, 2010

I need to start a service before network service How to?

View 1 Replies View Related

General :: Access The Dbxml From The Command Line And It Returns Command Not Found?

Apr 30, 2011

I installed the Berkeley DB on the Ubuntu server and tried to access the dbxml from the command line and it returns command not found

path/to/dir/dbxml-2.5.16/install/bin$dbxml
-bash" dbxml: command not found

Can someone point me in the right direction

View 1 Replies View Related

General :: When Adding Snbpasswd It Returns "failed To Find Entry For User Root"?

Apr 12, 2011

When adding snbpasswd it returns "failed to find entry for user root",who knows why?

View 1 Replies View Related

OpenSUSE :: Get A Message That Says 'Search Service Not Running' With A Button That Says 'Start Search Service'?

Jun 12, 2010

The desktop search has stopped working in Gnome.I get a message that says 'Search Service not running' with a button that says 'Start Search Service'.When I click the button nothing happens

View 1 Replies View Related

General :: Add An Application To Run As A Service?

Mar 2, 2010

How to add an application to start automatically on system startup in Linux? My distro: Mandriva 2009.1

View 3 Replies View Related

General :: How To Add Application To Run As Service

Sep 2, 2010

How to add an application to run as a service in Linux?is there a script in /etc i should edit? What is recommended. Right now im running something in .profile but that's kind of not what i want.

View 3 Replies View Related

General :: Name Service Is Configured?

Apr 4, 2011

i wanted to know how can i configure name service.

View 2 Replies View Related

General :: Service At 100% CPU Usage

Mar 12, 2010

my linux bos red hat Ent 5.0 is reporting CPU usage 100% for the service/agent cimserver.basically is slows down my system and I have to kill it so my system is OK again.my question is Can I set the CPU usage for this service? I mean can I set it to use only 4% or 10% of my CPU? or any other way to troubleshoot this 100% CPU usage. Since I've uninstalled and reinstall the agent and same issue.is it possible to set the CPU Usage?

View 5 Replies View Related

General :: When Type"import WxPython" In "python Environment It Returns?

Jan 26, 2011

I have installed wxPython on my Ubuntu 9.10. But when I type"import wxPython" in "python environment it returns the followingerror.Does it need a PATH to be added in ".bashrc"? If so what should I write as a PATH for it?

>>> import wxPython
Traceback (most recent call last):
File "<stdin>", line 1, in <module>

[code]....

View 1 Replies View Related

General :: Check Whether A Service Is Running?

Jan 29, 2010

I run a script manually like/usr/lib/openoffice.org/program/soffice and when I run

:ps -ef|grep openoffice

I get the following,

root 700 1 0 10:45 ? 00:00:00 /bin/sh /usr/lib/openoffice.org/program/soffice -calc

My question is how to check whether this script is running or not (It can be checked every 10 minutes) and how to make it as a service. (I don't have root access to put this in rc.local file or somewhere else).

View 2 Replies View Related

General :: Named Service Not Being Functional

Oct 11, 2010

One of the dedicated servers that I have does not seem to have the service 'named' functional:
root@server2 [~]# service named start
Locating /var/named/chroot//etc/named.conf failed: [FAILED]

Note that the double slashes (//) ARE part of the output as well as the long gap before [FAILED] appears. This 'named' service not being functional is not a problem which is preventing the server / the application on it from working. There are entries in /etc/resolv.conf though.

View 1 Replies View Related

General :: Converting A Script Into A Service?

Jan 14, 2011

How to convert a user written script into a service in linux?

View 1 Replies View Related

General :: Difference Between Deamon And Service?

Jun 15, 2010

difference between deamon and service in Linux?

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved