Sponsored Content
Full Discussion: Bind Problem
Top Forums UNIX for Advanced & Expert Users Bind Problem Post 302285506 by mjdousti on Monday 9th of February 2009 05:12:54 AM
Old 02-09-2009
[Solved] Bind Problem

Hi all,

I've 2 Debian Etch (4) box used as ns1 and ns2 with BIND9. My domain name is something like this:
subdomain.domain.com

And I've 2 authorized DNS servers for the subdomain. I set this line in both of ns1 and ns2 (I.e. in ns1.subdomain.domain.com and ns2.subdomain.domain.com):
Code:
cw                      A       188.88.88.88

This setting was set in /etc/bind/db.subdomain.domain.com .

The result of dig command was like this:

Command:
Code:
dig @ns1.subdomain.domain.com cw.subdomain.domain.com

Result:
Code:
; <<>> DiG 9.3.4-P1.1 <<>> @ns1.subdomain.domain.com cw.subdomain.domain.com
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 49076
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 4

;; QUESTION SECTION:
;cw.subdomain.domain.com.              IN      A

;; ANSWER SECTION:
cw.subdomain.domain.com.       86400   IN      A       188.88.88.88

dig showed the same result on ns2.subdomain.domain.com.
But when I sent the below query, I got nothing:
Command:
Code:
dig @ns1.domain.com cw.subdomain.domain.com

Result:
Code:
; <<>> DiG 9.3.4-P1.1 <<>> @ns1.domain.com cw.subdomain.domain.com
; (1 server found)
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 1182
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;cw.subdomain.domain.com.              IN      A

;; AUTHORITY SECTION:
subdomain.domain.com.          3600    IN      SOA     ns1.subdomain.domain.com. root.subdomain.domain.com. 2008012900 3600 900 1209600 3600

But there was no ANSWER section. I set these setting 2 or 3 days ago. My old *.subdomain.domain.com hasn't any problem.

Any idea to solve the problem?

Last edited by mjdousti; 02-09-2009 at 04:18 PM.. Reason: Solved Problem
 

10 More Discussions You Might Find Interesting

1. IP Networking

bind() error

Hello. I am havig problems with this program. It is a server supposed to get 2 integers from client, calculate a sum and send result back to client. I am getting a bind() error when attempting to execute it. Any help appreciated #include <stdio.h> #include <sys/types.h> #include... (2 Replies)
Discussion started by: Virtuosso
2 Replies

2. UNIX for Dummies Questions & Answers

how do redirect in bind

Hello all! Does anyone know how to redirect i link to a host or alias name? Here is the example: i wank to type "Bob" in my browser and be redirected to http://192.168.54.37:7001/Bob/BobMainServlet on that perticular port. Im using Redhat 6.2 with bind 9.2.3 regards... dOzY (4 Replies)
Discussion started by: dozy
4 Replies

3. Shell Programming and Scripting

Perl DBI - Bind Parameters Problem

I have a SQL statement that includes a UNION that I can't get to work when I bind the parameters. (I am binding the parameters to prevent SQL injection.) Does anybody have any suggestion on how I can use a SQL statement that includes a UNION and bind the params? Code would be something like... (1 Reply)
Discussion started by: mh53j_fe
1 Replies

4. Linux

BIND problem in Fedora Core

Hi , I am facing a strange with BIND in Fedora Core 6. Here is the config for more info. #cat /etc/named.caching-nameserver.conf options { listen-on port 53 { any; }; directory "/var/named"; // dump-file "/var/named/data/cache_dump.db"; ... (3 Replies)
Discussion started by: narasimhulu
3 Replies

5. Red Hat

Problem to bind to local ports on Fedora 13

A problem with binding to local ports (22,23,80) in Fedora 13. Ports look not used. sshd, webserver is not running. I am using java remote connection manager. It is working fine with IE or Firefox in Windows with any user account. With Fedora 13, it starts via Firefox with not root account and... (0 Replies)
Discussion started by: gogogo
0 Replies

6. Programming

bind source

here is the bind source file for the client.c in bind9 logs are written in var/log/file name in the form 02-Aug-2012 15:43:12.713 client 192.168.2.4#47512: query: 209.236.125.74.in-addr.arpa IN PTR + (192.168.2.4) i am in a subnet of 10 systems through 192.168.2.1..10 i want to write logs based... (2 Replies)
Discussion started by: balvinder87
2 Replies

7. Solaris

BIND in chroot

Hi all, I'm trying to start named in chroot environment manually but i'm getting the following error bash-3.00# cat /etc/release Solaris 10 6/06 s10s_u2wos_09a SPARC Copyright 2006 Sun Microsystems, Inc. All Rights Reserved. Use is... (1 Reply)
Discussion started by: h@foorsa.biz
1 Replies

8. Cybersecurity

[SELinux] Problem with Bind 9

Hi, I can not start named service: /etc/init.d/named start Iniciando named: Error in named configuration: zone default.domain/IN: loading from master file /home/admin/conf/dns/default.domain.db failed: permission denied zone default.domain/IN: not loaded due to errors.... (2 Replies)
Discussion started by: Anibal
2 Replies

9. UNIX for Dummies Questions & Answers

Can't bind to IP

When you get the message can't bind to ip already in use. is there a command to search to see everything that is using that IP? I've already check the host and hostname files (2 Replies)
Discussion started by: mchelle_99
2 Replies

10. UNIX for Advanced & Expert Users

Bind

Hi All I need to do bind of exiting filesystem to new storage allocated mount --bind /prod/OpenCSS /var/lib/test echo "/prod/OpenCSS /var/lib/pgsql bind bind 0 0" >> /etc/fstab will this command just work ? (2 Replies)
Discussion started by: anil529
2 Replies
hostname(5)							File Formats Manual						       hostname(5)

NAME
hostname - Host name resolution description DESCRIPTION
Host names are domains, where a domain is a hierarchical, dot-separated list of subdomains; for example, the machine monet, in the Berkeley subdomain of the EDU subdomain of the Internet would be represented as follows: monet.Berkeley.EDU Notice that there is no trailing dot. Host names are often used with network client and server programs, which must generally translate the name to an address for use. (This function is generally performed by the gethostbyname() function.) Host names are resolved by the Internet name resolver in the following fashion. If the name consists of a single component (that is, contains no dot), and if the HOSTALIASES environment variable is set to the name of a file, that file is searched for a string matching the input host name. The file should consist of lines made up of two white-space sepa- rated strings, the first of which is the host name alias, and the second of which is the complete host name to be substituted for that alias. If a case-insensitive match is found between the host name to be resolved and the first field of a line in the file, the substi- tuted name is looked up with no further processing. If the input name ends with a trailing dot, the trailing dot is removed, and the remaining name is looked up with no further processing. If the input name does not end with a trailing dot, it is looked up by searching through a list of domains until a match is found. The default search list includes first the local domain, then its parent domains with at least 2 name components (longest first). For example, in the domain CS.Berkeley.EDU, the name lithium.CChem will be checked first as lithium.CChem.CS.Berkeley.EDU and then as lithium.CChem.Berkeley.EDU. Lithium.CChem.EDU will not be tried, as there is only one component remaining from the local domain. The search path can be changed from the default by a system-wide configuration file. SEE ALSO
Functions: gethostbyname(3) Commands: named(8) hostname(5)
All times are GMT -4. The time now is 07:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy