Programming :: Named Hints Update Script?

Mar 27, 2011

I need help getting this bourne shell script working properly. This script I found online while reading some tutorials on getting a caching name server running, which is supposed to update the rootserver hints file.

The below case statement always returns that the hints file has failed. Even though when I check the file it looks normal and I can see the NOERROR status in the returned header.

Code: dig (at)e.root-servers.net . ns >root.hints.new 2> errors
case `cat root.hints.new` in
*NOERROR*)
# It worked

[Code]..

View 2 Replies


ADVERTISEMENT

Server :: /etc/named.conf:57: Open: /etc/named.root.hints: File Not Found

Apr 1, 2011

I am using Cent OS 5.5 and i want configure DNS, but while configuring bind i am getting below error.

#/etc/init.d/named restart Stopping named: [ OK ]
Starting named:
Error in named configuration:
/etc/named.conf:57: open: /etc/named.root.hints: file not found[FAILED]

View 2 Replies View Related

Programming :: WM-hints And Moving Window?

Sep 7, 2010

I have a toplevel window that I want to place depending on another toplevel window. I use gtk_window_move(widget, x, y); At startup this function is called several times and y is changed ones from 412 to 413 and x is always 0(checked with gdb in netbeans). The window gets placed at x=10 and y=400 or so. If I do not use variables but pure ints for x and y it gets placed correctly even if its the same values. I suspect that my window manager notice this change of y and place the widget for me. Is this correct and how do I tell the WM not to do so?

This change of y is due to window size is just a local size and not the correct one as in X. Can i force uppdates from X to the local cache?

View 3 Replies View Related

Programming :: Script Is Taking Hours, Hints On Better Alternative?

Jan 6, 2011

I need to compare two lists, and if a line exists in file 1, delete it from file 2. Here is what I am using, and it works on samples of a few hundred lines, but I have to get it to work faster on 50k lines. Has taken 7 hours so far and still no results.

result2 is master list, result1 is new list where i want every line to be completely unique--not in result2.

grep -vf result2.txt result1.txt | sed 's/ .*//' > diffs.txt

View 8 Replies View Related

Software :: File /var/lib/named/var/named/reverse/named.zero Failed: File Not Found

Mar 14, 2009

Mandriva 2009, BIND 9.5.0-P2. Named will start however I'm getting the above error as well as these:

14-Mar-2009 15:45:37.084 general: error: zone 0.in-addr.arpa/IN: loading from master file /var/lib/named/var/named/reverse/named.zero failed: file not found
14-Mar-2009 15:45:37.084 general: error: zone 0.0.127.in-addr.arpa/IN: loading from master file /var/lib/named/var/named/reverse/named.local failed: file not found

[code].....

Named shows to be running but with the errors above I know it's not running correctly. I also copied the above dir's over to /var/lib/named/var/lib/named which is where I 'believe' it's chroot'd at, though I could be wrong since I'm unfamiliar with chroot.

View 14 Replies View Related

CentOS 5 Server :: User Named Unknown After Bind Version Update

Jan 28, 2009

I updated bind to version bind-9.3.4-6.0.3.P1.el5_2 today, and then I started getting "Starting named: named: user 'named' unknown" messages. Selinux is enabled.
ID named shows:
uid=25(named) gid=25(named) groups=25(named) context=root:system_r:unconfined_t:SystemLow-SystemHigh

View 2 Replies View Related

Programming :: Read From A File Named MatrixA?

Mar 10, 2011

I am trying to read from a file named matrixA.dat that contains a matrix formatted like this:

2 x 3
1 0 2 -1 3 1

I am reading the lines in, and this is the source that I have so far: Code: #include <stdio.h>
#include <string.h>
#define DATALIMIT 17
#define DIMLIMIT 5
#define NAMELIMIT 40

[Code]...

was stored in dataA, so when I print it all I get is a newline. Why didn't it grab the 1 0 2 -1 3 1 line?

View 3 Replies View Related

Programming :: ImportError: No Module Named Mx.DateTime.ISO

Sep 9, 2010

In Python 2.6.5, I could import from mx.DateTime.ISO import ParseDateTimeUTC With 2.7 I cannot.Here is the error. My module util_lib contains the import noted above.

File "util_lib.py", line 46, in <module>
from mx.DateTime.ISO import ParseDateTimeUTC
ImportError: No module named mx.DateTime.ISO

What changes do I need to make, to import on pre-2.7 and 2.7?

View 2 Replies View Related

Programming :: Difference Between Message Queues And Named Pipes

Mar 1, 2011

recently I had been to interview where I had a question to be answered, that what are advantages and disadvantages when desiging an application in linux.

View 1 Replies View Related

Debian Programming :: Import Error / No Module Named Eyed3

Dec 10, 2013

I have installled eyeD3. It works on the commandline (bash). But I want use it in python3.

I did get this error:

Code: Select all>>> import eyed3
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named eyed3

Why cant I use this module for reading and writing tag information to mp3 files?

View 4 Replies View Related

Programming :: Bash: Populate A List Of Arbitrarily Named Files?

Mar 14, 2010

How to build a list of files under a directory that may have any permissible characters in the name, that is anything except NUL? The only possible (?) bash data structure to contain a list of such names is an array because NUL cannot be used as a list item separator so no X-separated list can safely be used; there is no "X" that might not be part of a file name. OK -- but how to populate such an array? Here's what I've tried.

Code:

#!/bin/bash
# Set up test files
dir=$(mktemp -d "/tmp/${0##*/}.XXXXXX")
touch $dir/foo $dir/bar

[code].....

View 10 Replies View Related

Programming :: Orrect Command To Create A Named Pipe File?

Apr 22, 2010

My question deals with me creating a name pipe (file) in the my /group directory called chat.I then have to write a script to read from the named pipe and save data into a file called chat.log until the words End of File are passed to the program.

-When I created the named pipe file (chat) I used the mknod chat p command..Is this the correct command to create a named pipe file? -Then I'm having trouble with my script and how to make it run until the words End of File are entered in. This is what I have so far.

View 6 Replies View Related

Ubuntu Installation :: Install Multiple Distros On SSD Hints?

Dec 15, 2010

I dual booted Karmic on my old laptop. I just received my new machine, Envy 17 with a 160 GB SSD and a 640 GB hard drive with Windows 7 pre-installed. I want to multiboot Windows, Maverick and the CAElinux distro, on the SSD I am thinking. I am in the process of searching the forums in regards to partitioning strategies and hints to smooth the installs.

View 9 Replies View Related

CentOS 5 Server :: Named Won't Start \ Named Stop But Does Not Start Again?

Oct 28, 2009

i've made a big update of almost 300Mb.I'had a working DNS server.Now, when i boot the box, named works and it resolves all the clients.If i make any change (enter a new client for example) and of course i restart named (service named restart), named stop but does not start again !!!In order to get a working named, i 'm obliged to reboot the box?

View 6 Replies View Related

Programming :: Gdb: "classname Does Not Have Any Method Named"?

Jun 20, 2010

Programming in C++ on Fedora 13, I have a console app with code spread throughout a half dozen files.Debugging with gdb, I want to list the code from a class-member function so, at the gdb prompt I type: list 'classn and when I press <tab>, gdb completes the classname for me: list 'classname Next, I add the scope resolution operator and then type the first few characters of the function name and again press <tab>. gdb completes the function name and adds on the parameters list and even puts the final single-quote at the end of the line:list 'classname::functionname(paramater list...)'

...but when I press enter I get an error message stating that "classname does not have any method named functionname" which seems like a strange complaint considering that gdb did most of the typing.

Similarly, trying to set a breakpoint at the top of this function yields this:"Make breakpoint pending on future shared library load?" As an aside: I am compiling all units with the -gstabs flag ( plain ol' -g didn't seem to get the job done.)

View 1 Replies View Related

CentOS 5 :: How To Add A Named.log To /var/log

Aug 5, 2009

I'm trying to separate DNS log entries from messages and have them write to their own log file "named.log". I'd like this file to end up as /var/log/named.log

View 1 Replies View Related

Fedora :: /etc/named.d Directory ?

Jul 17, 2011

I'm reading up on some DNS and this section mentioned a /etc/named.d directory. I can't seem to find it - i have bind installed and i've searched on this directory, and the only realistic mention of it is from a post in a blog from 2001. I'm working in a FC12 environment...

View 1 Replies View Related

General :: Can't Scp A Named Pipe?

Aug 2, 2011

I am trying to encrypt a file on-the-fly, redirecting the output to a named pipe [fifo]. I SSH into my server and run the command:mcrypt -k key < file > named_pipethen from my laptop I try to scp it:$ scp me@server:~/dir/named_pipe d it says scp:users/home/me/dir/named_pipe: not a regular file

View 1 Replies View Related

Programming :: Update Textview In Each Itration?

Feb 12, 2011

i need to display some values in glade textview.in my program on a button click a function is called .the function will print values in textview.its dynamically printed in loop.so i need to create a window in each itration. so how can i prevent multilple windows from being created in each itration? i want to update *textview in each itration..how?

View 1 Replies View Related

Programming :: Update A Line Using AWK With Condition?

Jun 18, 2010

i have a host file called myhosts.txt as follow:

Quote:

10.20.3.9 host1
10.20.3.10 host2
10.20.3.11 host3

[code]...

In my script, i am using NSLOOKUP to get the ip address of a host that just rebooted and connected to my network (this part has been done).But now i want to check the myhosts.txt file if the host has the same or different IP address, if is different then myhosts.txt file must be updated with the new IP.i am using the following AWk command:

Quote:

awk '/host4/{$1=val}{print}' val=10.0.3.4 /tmp/myhosts.txt

it prints on screen fine and i see the host4's ip address gets replaced but the actual file does not get updated with the new IP. I might need to use gsub?

View 11 Replies View Related

Programming :: Writing A Daemon That Can Update Itself?

Apr 27, 2011

I have written a daemon server. I would like to add the ability for the daemon to update itself. That is, it should be able to download the latest version of the code (when it receives a signal from a client) and then restart itself. I am stuck on getting the daemon to restart itself. The problem is killing the old daemon without killing the process that is starting the new daemon. In my latest attempt, the daemon that is updating itself runs a program in a subshell (using system) that starts a restarter daemon that runs the original daemon (again using system) with the restart command option. With the restart option, the new version of the daemon sends a terminate signal to the old version. Obviously, when I run the original daemon manually with the restart option, it restarts reliably. I figured that issuing the same restart command from a daemon would adequately isolate the process doing the restarting from the program being restarted. Using ps, I can see that the daemon does actually restart. However, the client locks. In fact, a few times, the OS locked and I had to reset.

View 7 Replies View Related

Debian :: Why Is Freetype2 Named/known As Libfreetype6

Jan 15, 2011

Why is freetype 2 put up as libfreetype6 ? What's the history/reasons behind the same ? This is the way it looks in my shell.

$ aptitude show libfreetype6
Package: libfreetype6                   
State: installed
Automatically installed: yes

[code]....

I am simply not getting it . Also would it mean that in future, freetype 3 (whenever that becomes/happen) it would be named as libfreetype7 or what ?

View 3 Replies View Related

Fedora :: Unwanted Process Named Ɖ'?

May 11, 2010

I've got a few processes running on my machine called simply '3'. I don't know what they are or where they have come from but all I know is that I don't want them there. I have to periodically type killall 3. This is the output from top, all processes listed are of this '3' type.

4804 tom 20 0 3356 752 656 R 2.3 0.0 3:40.75 3
4837 tom 20 0 3356 748 656 R 2.3 0.0 2:55.98 3
4844 tom 20 0 3356 752 656 R 2.3 0.0 2:50.06 3

[code]....

View 3 Replies View Related

OpenSUSE Install :: Box Is Being Named Automatically?

Feb 12, 2010

We have a MS Windows domain in our school. Some time ago, when I was toying with an earlier version of Opensuse, I joined a box to our domain. I am trying 11.2 now, and my box is box is being named automatically, to what I named the previous box (which is long gone). I guess this is an issue with my Windows domain controller, but I'm not sure what to do about it. The domain controller is running Windows Server 2008 Enterprise.

View 4 Replies View Related

OpenSUSE Network :: Named Takes 200% CPU

Jan 18, 2010

I am running opensuse 11.0 on Intel Quad computer. A month ago I have installed DNS service on it.

Since then I have a following problem - sometimes named starts eating 200% of CPU and that causes LAN to hang down. Everything goes normal after named restart.

View 9 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

Red Hat / Fedora :: Cannot Find The Named.conf

Mar 14, 2011

I have Red-Hat 5.6 , bind package and chroot installed, but i did not find the file named.conf in /etc !!!

View 3 Replies View Related

Server :: Named Not Responding To Queries

Feb 23, 2010

My DNS server used to work flawlessly but for some reason it no longer responds to queries. It seems that named always queries internet root serves!!

View 3 Replies View Related

Software :: Yum And No Module Named CElementTree

Mar 24, 2010

I installed something and now my yum dont work: There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named CElementTree install a package which provides this module, or verify that the module is installed correctly. It's possible that the above module doesn't match the current version of Python, which is:

2.4.3 (#1, Sep 3 2009, 15:37:12)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]

i use CentOS release 5.4 (2.6.18-164.2.1.el5.028stab066.7 #1 SMP Tue Dec 1 23:22:32 EET 2009 i686 i686 i386 GNU/Linux) on my VPS. # rpm -qa --last shows:

python-elementtree-1.2.6-5 Wed 24 Mar 2010 12:56:46 PM EET
rpmforge-release-0.5.1-1.el3.rf Wed 24 Mar 2010 08:20:32 AM EET
perl-Convert-ASN1-0.22-1.el3.rf Wed 24 Mar 2010 08:20:31 AM EET

[code]....

View 12 Replies View Related

CentOS 5 :: Yum - No Module Named CElementTree

Nov 24, 2009

I am having this problem everytime I execute the yum command: There was a problem importing one of the Python modules required to run yum. The error leading to this problem was: No module named cElementTree

Please install a package which provides this module, or verify that the module is installed correctly. It's possible that the above module doesn't match the current version of Python, which is:
2.4.3 (#1, Sep 3 2009, 15:37:12)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]

View 1 Replies View Related







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