Networking :: Nslookup Returning Multiple Names On RedHat With Windows AD
Jun 11, 2010
Recently I installed RedHat Enterprise 5 on a windows machine. The machine is configured to use DHCP, but I have been seeing some strange behavior if I do nslookup on the machine's IP:
[someuser@lin01 mydir]$ nslookup 10.5.x.x
Server: 10.10.x.xx
Address: 10.10.x.xx#53
x.x.5.10.in-addr.arpa name = xyz.something.
x.x.5.10.in-addr.arpa name = lenovo-d1690047.
x.x.5.10.in-addr.arpa name = pqdlds.
x.x.5.10.in-addr.arpa name = lin01.mydomain.com.
Where only the last entry of [URL] is actually correct, how can remove the other entries? I spoke to my IT Manager and he cannot see these stale entries in the DNS (we are using windows AD)
I configured my dns server running on redhat5(test.com, ip-192.168.10.1), all is working perfect on the server its-self and on the client machine(xp), it cant resolve the name [url] but can resolve when i use [url]are ok, nslookup displays the following error:
The reverse is working fine from the redhat machine, NO firewall on the client xp machine xp as host name is added in /etc/hosts
Is it possible to have one static IP address with a NAT network forwarding each domain name to certain internal/DMZ IP addresses? I know you can do it by port but if both websites are on port 80 can you forward to the corresponding server on the dmz.I ask this because I noticed the website braemere.com.au had to be typed into a web browser and entering the IP which is 202.47.5.7 did not take me to the website.
I have an ubuntu server set up in which i would like my shared media directory to be accessable with multiple usernames / passwords because I use my admisistrator username and password for samba as well, but I do not want to give out that password to all clients in my house. And, I would like to have write permissions but keep other users to read only. Is this possible or do i need to just make one separate username / password for samba sharing?
I had Windows XP working. I then put in a new hard disk and installed Redhat 5 on it. rom then i could only boot into Redhat. Further, everyting is very slow. Anothe rproblem is that Redhat does not see my netwrok so I cannot get onto the Internet. I need to have the choice of booting into XP or Redhat.
Not really a linux specific thing I have gooled the heck out of it and tried nslookup -a and a few other options nothing gets me what I need. The question is I have a machine with several aliases in dns. How do I do a nslookup and display all the aliases for a system.
I am trying to see if something it aliased correctly but i cannot list all the names a system is know by.
I am sure its something simple I am missing with a switch.
I am not so experienced with networking in Linux. I've successfully installed Red Hat Linux Enterprise 5.2 on a VMware host. When I issued nslookup command, it returns "connection timed out" error as follows:
Code: [root@rac1 ~]# time nslookup rac1 ;; connection timed out; no servers could be reached real 0m15.038s user 0m0.000s sys 0m0.000s
My questions are: (1) Is that error normal? (2) Is there a way to decrease the 15.038s value? rac1 is the local hostname, so why it takes all that time to resolve it.
Following info may help: Code: [root@rac1 ~]# hostname rac1.mydomain.com [root@rac1 ~]# cat /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 localhost.localdomain localhost #eth0 - PUBLIC 192.0.2.100 rac1.mydomain.com rac1
[root@rac1 ~]# ping -c 4 rac1 PING rac1.mydomain.com (192.0.2.100) 56(84) bytes of data. 64 bytes from rac1.mydomain.com (192.0.2.100): icmp_seq=1 ttl=64 time=0.015 ms 64 bytes from rac1.mydomain.com (192.0.2.100): icmp_seq=2 ttl=64 time=0.029 ms 64 bytes from rac1.mydomain.com (192.0.2.100): icmp_seq=3 ttl=64 time=0.029 ms 64 bytes from rac1.mydomain.com (192.0.2.100): icmp_seq=4 ttl=64 time=0.029 ms --- rac1.mydomain.com ping statistics --- 4 packets transmitted, 4 received, 0% packet loss, time 3000ms rtt min/avg/max/mdev = 0.015/0.025/0.029/0.007 ms
Found that RedHat Linux supports Context-Dependent Path Names in symbolic links using special reserved CDPN variables. Will it be possible to create a user-defined CDPN variable and use it in creating a symbolic link
I have a situation where I have two DNS servers - a BIND one for our Unix hosts and a Windows Server DNS one for the Exchange and other Windows hosts. I set up the BIND server to slave from the Windows one, which it seems to do just fine.
Windows DNS has entries like "_gc._tcp.domain.local" in it, which are needed for domain logins, etc.
However, when I try to use nslookup on those entries, it fails when querying the BIND server. When I do a domain transfer with dig, I get all the answers I expect.
This failure means that the Windows boxes can't query the BIND server for the answers they need. By default, from DHCP, it is the BIND server they get, so that's a big problem. If I manually switch their DNS to the Windows server, it works perfectly.
I'm finding that I can not resolve .local domains anywhere except with nslookup and found on the LucidLynx release notes that there is a problem with avahi causing this. Although the avahi service is convenient for locating printers and such can anyone else tell me what other services/options will be impacted on a default installation of Ubuntu if I disable this service?
I have an internal domain (dev.lan) for which my Ubuntu server is authoritative. We have a number of subdomains under that domain (test.dev.lan, svn.dev.lan, etc.). The server also acts as the primary DNS server for my office. It was originally set up under Ubuntu 8 and worked great.
However, ever since we upgraded to Ubuntu 10, our Windows clients periodically lose the ability to resolve domains on the dev.lan domain. Internal IP addresses can still be pinged from the Windows machines so it does not appear to be a network-connectivity issue. External domain names continue to resolve without any problems. The only workaround is to restart networking on the Windows clients. It's frustrating because it happens several times a day.
I'm trying to find a command to tell nslookup, "I want you to try to resolve hostname X using DNS server Y, and if the lookup fails, just output failure do NOT fail over to some other DNS server as a backup and use it to try to resolve the same hostname."I'm trying to follow the man page instructions for doing this, but it doesn't seem to work. The man page for nslookup on my system (CentOS 5.5) includes the line:
"[no]fail Try the next nameserver if a nameserver responds with SERVFAIL or a referral (nofail) or terminate query (fail) on such a response."But if I try using that option, the output seems to indicate that after the lookup failed on ns1.afraid.org, nslookup failed over to 208.67.220.220 (the first nameserver listed in my resolv.conf -- an OpenDNS nameserver) and used it to resolve the hostname instead.
right now i'm doing a find . -type d -iname "z*" to find all folders who's name starts with z or Z.
Is there a way I could with one command find all folders who's name starts with the letters M through Z, without having to do the same command over and over and just changing the letter each time?
I'm not sure if this is possible or even where to start. I assume that this can be done with an sh script using tar or similar.I have several very large zip files that contain images for all of the products in my online store. Each image is named after its 13 digit SKU (for example, 9987788000012.jpg). In order to import products into my store, all images are placed into a media directory. Unfortunately, there are over 100,000 images.
So I would like to break the images into sub-folders based on file name. For example, when I extract store_images.zip (or tar or whatever), my extract script would create directories (if they don't already exist) based on the first three digits of each image name, placing each image into the appropriate bottom level directory. For example, "9987788000012.jpg" would be placed in the following directory "media/9/9/8", with media as the root and "8" as the directory that holds any images that start with "998". Perhaps two sub-folders would be less cumbersome.Assuming this requires a script, particularly since it involves scanning image names, creating folders, and saving images to specific directories, which language would serve my needs best? PHP? Has anyone had to do something similar?
I become to use tar with incremental feature for archiving data under ubuntu.But when I try to extract archive later under windows (using gnu tar also) it creates many directories like this:
I am running centOS specifically to run mrepo to create patches/updates for systems that are not permitted access to any public network. I understand how to get repositories for both -i386 and x86_64 versions.
My questionis that I have systems running RHEL Versions from 5.1 to 5.4 in the -i386 section. Do I create two -i386 directories and try to build separate repositories for each or just make one -386 directory using the 5.1 iso. Then use the same repository for both?
I have a linux box, which was given to me by a company with 3 dedicated IP addresses. My goal was to setup ssh tunnels on all three dedicated IP Addresses.
Via Putty, i am successfully able to create a tunnel to the box's on IP1 IP2 and IP3 - that is i can make incoming connections on all three IP's.
However, my problem lies when i attempt to USE the tunnel. AIn all instances, regardless of the IP i actually tunneled into the box with, it returns IP1 as an outgoing connection, i.e if i setup IE to use the tunnel, it will return my IP as IP1, even though i have created the tunenl via IP2/IP3.
What id liek to accomplish is that when i create a tunnel via IP1, then outgoing connections go via IP1, and when i create a tunnel via IP2, then outgoping connectiosn go via Ip2 etc.
After discussing this with a colleague of mine, he infomed me he had the same problem at one point, and that some configuration on the box was required - however he was unable to recall.
I'm building a very small netbootable client, using a stripped down custom kernel and busybox v.1.18.4 (stable) with the embedded ifconfig and udhcpc applets
after startup, the initrd is loaded, and the proc, sys, dev and pts folders are properly created and mounted.
/proc/net/dev properly contain eth0 as an ethernet device.
in the init script I execute a background call to udhcpc passing the dhcp.script properly to udhcpc, and dhcp.script is then executed when the bound event occurs.
what I cant get past is udhcpc is passing back the interface evironment variable as etho0 (thats, 'eth' lowercase 'o' and a zero '0', when it should be passing 'eth0', thats 'eth' and zero '0')
I know I could hardcode the eth0, but i was hoping for a somewhat smarter system.
i have a lan network in my school that doesnt allow conection to the Internet. looking for a chat program that would let me (ubuntu10.10) contact other windows users on the network, i found that Pidgin and Bonjour do the trick.
however i could not find a way to chat with several people at a time (eg. create a chat-room). is this a fault of bonjour? is there a different program that can do this?
I installed fedora lastnight, but any addresses I type in the field is returning server error, but if I type the IP address it will work, I reinstalled Fedora 11 about 3 times, samething.
I need to replace ":" from multiple files names, since I am going to copy those files from a linux partition, which admit the ":" to a FAT32 partition, which does not.
Example: original name: eg06_ana_21-05-06_09:21:03.JPG wished name: eg06_ana_21-05-06_09-21-03.JPG
I have googled a lot but I have not been able to adapt the examples given by people to my aim.
It seems that rename command is what I should use, but I have no idea to build the correct pearl expression.
Is there a way to send personalized bulk emails ? That is sending mails to a group of people without each of them knowing about each other's email address (without using BCC). Also, with each person having only his own mail address in the 'To' field.
the way may be like setting any option in hotmail.com or via any mail client [thunderbird is preferd]or via any add-on for browser or mail-client.
I.e. i have Opera open up at the moment and it says "Ubuntu Forums - Post New Thread - Opera". How can i change my programs so that i can change the name of the program that appears in the windows?
I have Windows and Linux machines on the same subnet. My router configuration correctly tells me both their machine names, and their IP addresses. However, when I try and ping a Linux machine from a Windows machine, or ping a Windows machine from a Linux machine, I need to use IP addresses rather than names. If I'm pinging a Windows machine from a Windows machine, or a Linux machine from a Linux machine, the machine name correctly resolves without any hosts file entries. Why is this?
I would have thought my router (D-Link DIR-655) would act as a DNS server itself. I see it has an option called "Enable DNS Relay", but from what I've read this won't help me. If it's relevant, the DIR-655 is used for internal traffic, with my ISP's Netgear DGN1000 used as a gateway to the Internet. It's on a different subnet though, and all my machines connect to my DIR-655, not the DGN1000. What do I need to do to have host names automatically resolved within my subnet regardless of the operating system that they're running?
I've read man screen but still cannot do some things. How can I list all windows? man says: Use C-a ". I tried holding ctrl + a but then if I want type ". I have to press shift and press key which usually gives me but this not work? Can I type " without using shift? Second how can I assign names to windows? When I type ctrl+a+w I see 0-$bash 1$bash 2*$bash but is possible to assign other names?
I've had my FC11 x86_64 installation up and running for 6 months. Until a week ago, I was able to mount windows shares through Nautilis using their netbios names. About a week ago, this all broke with no tinkering on my part. Now, I can mount the shares using the IP address, but not using the netbios name.
When I make he attempt either from scratch or by using a previously working bookmark, I get "cannot display location "smb:\..." When I browse the network using Nautilis I can see the workgroup, but when I try to open it, I get "unable to mount location. Failed to retrieve share list from server." When I use nmblookup with the netbios name, the correct ip adress is returned.
The problem seemed to correspond to a software update that occurred on 2009-11-21 that included updates to selinux-policy and selinux-policy-targeted. SE Linux has the System Default Enforcing Mode set to disabled. The system default policy type is set to targeted with no other options available.nsswitch.conf file appears to have been changed on the same date, but reverting back to the backup version of the file failed to solve the problem. Samba is up and running. My linux shares are accessible from my windows boxes. The firewall is open to smb and smbclient.
After upgrading my ubuntu server from 9.04 to 10.04, the window computers couldn't resolve samba shared names anymore, the error code displayed by Windows was 0x80070035.
I was using the ubuntu server as a samba server, using 'share' as the security authentication method, it has been working very well under previous ubuntu versions but, after upgrading to 10.04, the windows computers can't access the server shares anymore; the linux computers don't have any problems (I can access the shares from linux).
As a workaround, I've added the name of the server in c:windowssystem32driversetchosts; but I'd like to know how to fix the problem without modifying every windows computer.