Re: [Pdns-users] SOA record not resolved for my domains

2018-04-29 Thread bert hubert
On Sun, Apr 29, 2018 at 02:50:59PM +0430, Hamed Haghshenas wrote:
> I found the problem, it’s related to use wrong Schema, I update my
> database tables with Default Schema get from
> https://doc.powerdns.com/authoritative/backends/generic-mysql.html and fix
> the problem .

!متشکرم

It is always appreciated when people report back what the problem was & this
helps people finding these posts via search engines too.

Bert
___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users


Re: [Pdns-users] SOA record not resolved for my domains

2018-04-29 Thread Hamed Haghshenas
Hi,

 

I found the problem, it’s related to use wrong Schema, I update my database 
tables with Default Schema get from 
https://doc.powerdns.com/authoritative/backends/generic-mysql.html and fix the 
problem .

 

Best Regards,

Hamed Haghshenas

___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users


Re: [Pdns-users] SOA record not resolved for my domains

2018-04-26 Thread Hamed Haghshenas
Hi Brian ,

So the zone is web45.ir, and the nameserver is 136.243.129.13, which is known 
as both ns1.web45.ir and ns2.web45.ir. Is that correct (*)?

>> yes both nameservers pointed to one server and IP (136.243.129.13)

what version of pdns-authoritative are you using?

>> pdns-4.1.1-1

Where did you get the package from ?

repo.powerdns.com

What OS are you running underneath?

CentOS Linux release 7.4.1708

Have you tried turning off the geo-ip features and just serving a plain zone? 

No I didn’t, but I use geoip only for this subdomain “geo.web45.ir” like below :

domains:

- domain: geo.web45.ir

  ttl: 30

  records:

geo.web45.ir:

unknown.geo.web45.ir:

  - a: A.B.C.D

tcea.geo.web45.ir:

  - a: W.X.Y.Z

Best Regards,

Hamed Haghshenas

___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users


Re: [Pdns-users] SOA record not resolved for my domains

2018-04-26 Thread Hamed Haghshenas
Hi Bert,

Can you run pdnsutil check-zone web45.ir?

[root@ns1 chvadmin]# pdnsutil check-zone web45.ir
Apr 26 03:21:04 Reading random entropy from '/dev/urandom'
Apr 26 03:21:04 gmysql Connection successful. Connected to database
'powerdns' on 'localhost'.
Apr 26 03:21:04 gmysql Connection successful. Connected to database
'powerdns' on 'localhost'.
Checked 9 records of 'web45.ir', 0 errors, 0 warnings.


___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users


Re: [Pdns-users] SOA record not resolved for my domains

2018-04-26 Thread bert hubert
On Thu, Apr 26, 2018 at 10:42:00AM +0430, Hamed Haghshenas wrote:
> My domain is web45.ir and the nameservers are ns1.web45.ir and ns2.web45.ir

Ok, these do answer correctly, except for the SOA. Can you run pdnsutil
check-zone web45.ir?

It seems something is specifically wrong with the SOA record.

BErt
___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users


Re: [Pdns-users] SOA record not resolved for my domains

2018-04-26 Thread Brian Candler

On 26/04/2018 07:27, Hamed Haghshenas wrote:


I replied my domain name here 
https://mailman.powerdns.com/pipermail/pdns-users/2018-April/025316.html


So the zone is web45.ir, and the nameserver is 136.243.129.13, which is 
known as both ns1.web45.ir and ns2.web45.ir. Is that correct (*)?


You didn't show what response you got to the query before, but I can 
test it now:


$ dig @ns1.web45.ir. web45.ir. soa   => gives SERVFAIL

$ dig @ns1.web45.ir. web45.ir. ns   => works

$ dig @ns1.web45.ir. mail.web45.ir. a  => works

Some platform info please: what version of pdns-authoritative are you 
using? Where did you get the package from? What OS are you running 
underneath?


Have you tried turning off the geo-ip features and just serving a plain 
zone?  That would help narrow it down.  If you can demonstrate it's a 
problem specifically with geo-ip then you can show your exact config for 
that.


Regards,

Brian.


(*) Since the name(s) of the nameserver(s) are within the zone being 
served, I'll make a quick check of the glue at the level above.


$ dig +trace web45.ir. soa

...
ir.            172800    IN    NS    a.nic.ir.
ir.            172800    IN    NS    b.nic.ir.
ir.            172800    IN    NS    ir.cctld.authdns.ripe.net.
ir.            172800    IN    NS    ns5.univie.ac.at.

$ dig @a.nic.ir. ns1.web45.ir. a

...
ns1.web45.ir.        1440    IN    A    136.243.129.13
ns2.web45.ir.        1440    IN    A    136.243.129.13

OK, that looks good to me.

___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users


Re: [Pdns-users] SOA record not resolved for my domains

2018-04-26 Thread Hamed Haghshenas
Hi Nico,

I replied my domain name here 
https://mailman.powerdns.com/pipermail/pdns-users/2018-April/025316.html

 

Best Regards,

Hamed Haghshenas

 

 

Hi Hamed,


On 26 Apr 2018, at 06:34, Hamed Haghshenas  > wrote:

Hi,

 

I configure PowerDNS with configuration bellow :

setuid=pdns

setgid=pdns

launch=gmysql,geoip

gmysql-host=localhost

gmysql-user=powerdns

gmysql-password=Hamed@2013

gmysql-dbname=powerdns

geoip-database-files=/usr/share/GeoIP/GeoIP.dat

geoip-zones-file=/etc/pdns/GeoIP/geo.yaml

edns-subnet-processing=yes

log-dns-queries=yes

loglevel=9

udp-truncation-threshold=4096

server-id=ns1.example.com  

 

my zone file for my website is like below where MY IP is (W.X.Y.Z):

$ORIGIN .

mail.example.com 300 IN  A   W.X.Y.Z

ns1.example.com  300 IN  A   W.X.Y.Z

ns2.example.com  300 IN  A   W.X.Y.Z

example.com  300 IN  A   W.X.Y.Z

example.com  300 IN  MX  10 
mail.example.com  .

example.com  300 IN  NS  
ns1.example.com  .

example.com  300 IN  NS  
ns2.example.com  .

example.com  300 IN  SOA 
ns1.example.com   hostmaster.example.com 
  2018041910 28800 3600 3600 3600

www.example.com  300 IN  CNAME   
example.com  .

 

but when try lookup for SOA record, nothing resolved !

 

dig example.com   @8.8.8.8 SOA

;; QUESTION SECTION:

; example.com  .  IN  SOA

 

I appreciate it, if let me know how make changes to fix this problem (resolve 
SOA record).

 

 

Is example.com   the zone you’re using? Or did you replace 
it in the above output?

 

If the former then you are not authoritative for it and that’s why Google 
public DNS won’t answer with what you configured. 

If the later please give us your domain name as well as your Authoritative IP 
addresses, otherwise it’s near to impossible to help you. 

 

Cheers,

 

-- 

Nico

___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users


Re: [Pdns-users] SOA record not resolved for my domains

2018-04-26 Thread Nico CARTRON
Hi Hamed,

> On 26 Apr 2018, at 06:34, Hamed Haghshenas  wrote:
> 
> Hi,
>  
> I configure PowerDNS with configuration bellow :
> setuid=pdns
> setgid=pdns
> launch=gmysql,geoip
> gmysql-host=localhost
> gmysql-user=powerdns
> gmysql-password=Hamed@2013
> gmysql-dbname=powerdns
> geoip-database-files=/usr/share/GeoIP/GeoIP.dat
> geoip-zones-file=/etc/pdns/GeoIP/geo.yaml
> edns-subnet-processing=yes
> log-dns-queries=yes
> loglevel=9
> udp-truncation-threshold=4096
> server-id=ns1.example.com
>  
> my zone file for my website is like below where MY IP is (W.X.Y.Z):
> $ORIGIN .
> mail.example.com   300 IN  A   W.X.Y.Z
> ns1.example.com300 IN  A   W.X.Y.Z
> ns2.example.com300 IN  A   W.X.Y.Z
> example.com300 IN  A   W.X.Y.Z
> example.com300 IN  MX  10 mail.example.com.
> example.com300 IN  NS  ns1.example.com.
> example.com300 IN  NS  ns2.example.com.
> example.com300 IN  SOA ns1.example.com 
> hostmaster.example.com 2018041910 28800 3600 3600 3600
> www.example.com300 IN  CNAME   example.com.
>  
> but when try lookup for SOA record, nothing resolved !
>  
> dig example.com @8.8.8.8 SOA
> ;; QUESTION SECTION:
> ; example.com.  IN  SOA
>  
> I appreciate it, if let me know how make changes to fix this problem (resolve 
> SOA record).
>  

Is example.com the zone you’re using? Or did you replace it in the above output?

If the former then you are not authoritative for it and that’s why Google 
public DNS won’t answer with what you configured. 
If the later please give us your domain name as well as your Authoritative IP 
addresses, otherwise it’s near to impossible to help you. 

Cheers,

-- 
Nico___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users


Re: [Pdns-users] SOA record not resolved for my domains

2018-04-26 Thread Hamed Haghshenas
Dear Bert

My domain is web45.ir and the nameservers are ns1.web45.ir and ns2.web45.ir

So my zone will be like :

$ORIGIN .
mail.web45.ir   300 IN  A   136.243.129.13
ns1.web45.ir300 IN  A   136.243.129.13
ns2.web45.ir300 IN  A   136.243.129.13
web45.ir300 IN  A   136.243.129.13
web45.ir300 IN  MX  10 mail.web45.ir.
web45.ir300 IN  NS  ns1.web45.ir.
web45.ir300 IN  NS  ns2.web45.ir.
web45.ir300 IN  SOA ns1.web45.ir hostmaster.web45.ir
2018041910 28800 3600 3600 3600
www.web45.ir300 IN  CNAME   web45.ir.

noted I create these records by poweradmin .

Best Regards,
Hamed Haghshenas


___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users


[Pdns-users] SOA record not resolved for my domains

2018-04-25 Thread Hamed Haghshenas
Hi,

 

I configure PowerDNS with configuration bellow :

setuid=pdns

setgid=pdns

launch=gmysql,geoip

gmysql-host=localhost

gmysql-user=powerdns

gmysql-password=Hamed@2013

gmysql-dbname=powerdns

geoip-database-files=/usr/share/GeoIP/GeoIP.dat

geoip-zones-file=/etc/pdns/GeoIP/geo.yaml

edns-subnet-processing=yes

log-dns-queries=yes

loglevel=9

udp-truncation-threshold=4096

server-id=ns1.example.com

 

my zone file for my website is like below where MY IP is (W.X.Y.Z):

$ORIGIN .

mail.example.com   300 IN  A   W.X.Y.Z

ns1.example.com300 IN  A   W.X.Y.Z

ns2.example.com300 IN  A   W.X.Y.Z

example.com300 IN  A   W.X.Y.Z

example.com300 IN  MX  10 mail.example.com.

example.com300 IN  NS  ns1.example.com.

example.com300 IN  NS  ns2.example.com.

example.com300 IN  SOA ns1.example.com
hostmaster.example.com 2018041910 28800 3600 3600 3600

www.example.com300 IN  CNAME   example.com.

 

but when try lookup for SOA record, nothing resolved !

 

dig example.com @8.8.8.8 SOA

;; QUESTION SECTION:

; example.com.  IN  SOA

 

I appreciate it, if let me know how make changes to fix this problem
(resolve SOA record).

 

Best Regards,

Hamed Haghshenas

 

___
Pdns-users mailing list
Pdns-users@mailman.powerdns.com
https://mailman.powerdns.com/mailman/listinfo/pdns-users