Discussion:
[Freeipa-users] cannot delete PTR DNS records from the command line
Brent Clark
2014-02-13 15:15:52 UTC
Permalink
I have run into a problem where I cannot delete PTR DNS records from the
command line. This is something that until recently I have never attempted.

IPA version = ipa-server-2.2.0-17.el6_3.1.x86_64

When I try to delete a PTR record I get this message.
ipa dnsrecord-del 41.100.10.in-addr-arpa. 250 --ptr-rec test1
ipa: ERROR: invalid 'hostname': invalid domain-name: not fully qualified

ipa dnsrecord-del 41.100.10.in-addr-arpa. 250 --ptr-rec test1.test.com
ipa: ERROR: 250: DNS resource record not found

ipa dnsrecord-del 41.100.10.in-addr-arpa. test1.test.com. --ptr-rec 250
ipa: ERROR: invalid 'hostname': invalid domain-name: not fully qualified

Its got to be a simple thing I am missing, can someone please show what I
am doing wrong?

Thanks!
--
Brent S. Clark
NOC Engineer

2580 55th St. | Boulder, Colorado 80301
www.tendrilinc.com | blog <http://www.tendrilinc.com/news-room/blog/>
<http://www.tendrilinc.com/>


This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender.
Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.
Finally, the recipient should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus transmitted by this email.
Martin Kosek
2014-02-13 15:23:21 UTC
Permalink
Post by Brent Clark
I have run into a problem where I cannot delete PTR DNS records from the
command line. This is something that until recently I have never attempted.
IPA version = ipa-server-2.2.0-17.el6_3.1.x86_64
When I try to delete a PTR record I get this message.
ipa dnsrecord-del 41.100.10.in-addr-arpa. 250 --ptr-rec test1
ipa: ERROR: invalid 'hostname': invalid domain-name: not fully qualified
ipa dnsrecord-del 41.100.10.in-addr-arpa. 250 --ptr-rec test1.test.com
ipa: ERROR: 250: DNS resource record not found
ipa dnsrecord-del 41.100.10.in-addr-arpa. test1.test.com. --ptr-rec 250
ipa: ERROR: invalid 'hostname': invalid domain-name: not fully qualified
Its got to be a simple thing I am missing, can someone please show what I
am doing wrong?
Thanks!
Unqualified PTR records do not make sense, this is why we validate them on
addition. What does following command show?

$ ipa dnsrecord-show 41.100.10.in-addr-arpa. 250

Is the record really resolvable?

$ host 10.100.41.250

Martin
Petr Spacek
2014-02-13 15:23:23 UTC
Permalink
Post by Brent Clark
I have run into a problem where I cannot delete PTR DNS records from the
command line. This is something that until recently I have never attempted.
IPA version = ipa-server-2.2.0-17.el6_3.1.x86_64
When I try to delete a PTR record I get this message.
ipa dnsrecord-del 41.100.10.in-addr-arpa. 250 --ptr-rec test1
ipa: ERROR: invalid 'hostname': invalid domain-name: not fully qualified
ipa dnsrecord-del 41.100.10.in-addr-arpa. 250 --ptr-rec test1.test.com
ipa: ERROR: 250: DNS resource record not found
ipa dnsrecord-del 41.100.10.in-addr-arpa. test1.test.com. --ptr-rec 250
ipa: ERROR: invalid 'hostname': invalid domain-name: not fully qualified
Its got to be a simple thing I am missing, can someone please show what I
am doing wrong?
Please send us output from commands:

$ ipa dnszone-show 41.100.10.in-addr-arpa.
$ ipa dnsrecord-find 41.100.10.in-addr-arpa. 250

Thank you.
--
Petr^2 Spacek
Brent Clark
2014-02-13 15:40:24 UTC
Permalink
Here are the results of the commands asked for. Also attached is a png of
the webui showing the zone and record exists that I want to delete.

Many Thanks!


ipa dnsrecord-find 41.100.10.in-addr-arpa. 250
----------------------------
Number of entries returned 0
----------------------------

ipa dnszone-show 41.100.10.in-addr-arpa.
ipa: ERROR: 41.100.10.in-addr-arpa.: DNS zone not found

host 10.100.41.250
250.41.100.10.in-addr.arpa domain name pointer test1.test.com.
Post by Petr Spacek
Post by Brent Clark
I have run into a problem where I cannot delete PTR DNS records from the
command line. This is something that until recently I have never attempted.
IPA version = ipa-server-2.2.0-17.el6_3.1.x86_64
When I try to delete a PTR record I get this message.
ipa dnsrecord-del 41.100.10.in-addr-arpa. 250 --ptr-rec test1
ipa: ERROR: invalid 'hostname': invalid domain-name: not fully qualified
ipa dnsrecord-del 41.100.10.in-addr-arpa. 250 --ptr-rec test1.test.com
ipa: ERROR: 250: DNS resource record not found
ipa dnsrecord-del 41.100.10.in-addr-arpa. test1.test.com. --ptr-rec 250
ipa: ERROR: invalid 'hostname': invalid domain-name: not fully qualified
Its got to be a simple thing I am missing, can someone please show what I
am doing wrong?
$ ipa dnszone-show 41.100.10.in-addr-arpa.
$ ipa dnsrecord-find 41.100.10.in-addr-arpa. 250
Thank you.
--
Petr^2 Spacek
--
Brent S. Clark
NOC Engineer

2580 55th St. | Boulder, Colorado 80301
www.tendrilinc.com | blog <http://www.tendrilinc.com/news-room/blog/>
<http://www.tendrilinc.com/>


This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender.
Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.
Finally, the recipient should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus transmitted by this email.
Petr Vobornik
2014-02-13 16:25:19 UTC
Permalink
Hello,

The zone name is:
41.100.10.in-addr.arpa.
Not:
41.100.10.in-addr-arpa.

HTH
Post by Brent Clark
Here are the results of the commands asked for. Also attached is a png of
the webui showing the zone and record exists that I want to delete.
Many Thanks!
ipa dnsrecord-find 41.100.10.in-addr-arpa. 250
----------------------------
Number of entries returned 0
----------------------------
ipa dnszone-show 41.100.10.in-addr-arpa.
ipa: ERROR: 41.100.10.in-addr-arpa.: DNS zone not found
host 10.100.41.250
250.41.100.10.in-addr.arpa domain name pointer test1.test.com.
Post by Petr Spacek
Post by Brent Clark
I have run into a problem where I cannot delete PTR DNS records from the
command line. This is something that until recently I have never attempted.
IPA version = ipa-server-2.2.0-17.el6_3.1.x86_64
When I try to delete a PTR record I get this message.
ipa dnsrecord-del 41.100.10.in-addr-arpa. 250 --ptr-rec test1
ipa: ERROR: invalid 'hostname': invalid domain-name: not fully qualified
ipa dnsrecord-del 41.100.10.in-addr-arpa. 250 --ptr-rec test1.test.com
ipa: ERROR: 250: DNS resource record not found
ipa dnsrecord-del 41.100.10.in-addr-arpa. test1.test.com. --ptr-rec 250
ipa: ERROR: invalid 'hostname': invalid domain-name: not fully qualified
Its got to be a simple thing I am missing, can someone please show what I
am doing wrong?
$ ipa dnszone-show 41.100.10.in-addr-arpa.
$ ipa dnsrecord-find 41.100.10.in-addr-arpa. 250
Thank you.
--
Petr^2 Spacek
_______________________________________________
Freeipa-users mailing list
https://www.redhat.com/mailman/listinfo/freeipa-users
--
Petr Vobornik
Brent Clark
2014-02-13 18:25:51 UTC
Permalink
Hmm, amazing what works when you spell stuff right.

Epic Fail on my part. Face plant in the mud.

Apologies to all for such silliness that I have put you all thru.

Thanks!
Post by Petr Vobornik
Hello,
41.100.10.in-addr.arpa.
41.100.10.in-addr-arpa.
HTH
Post by Brent Clark
Here are the results of the commands asked for. Also attached is a png of
the webui showing the zone and record exists that I want to delete.
Many Thanks!
ipa dnsrecord-find 41.100.10.in-addr-arpa. 250
----------------------------
Number of entries returned 0
----------------------------
ipa dnszone-show 41.100.10.in-addr-arpa.
ipa: ERROR: 41.100.10.in-addr-arpa.: DNS zone not found
host 10.100.41.250
250.41.100.10.in-addr.arpa domain name pointer test1.test.com.
Post by Brent Clark
I have run into a problem where I cannot delete PTR DNS records from the
Post by Brent Clark
command line. This is something that until recently I have never attempted.
IPA version = ipa-server-2.2.0-17.el6_3.1.x86_64
When I try to delete a PTR record I get this message.
ipa dnsrecord-del 41.100.10.in-addr-arpa. 250 --ptr-rec test1
ipa: ERROR: invalid 'hostname': invalid domain-name: not fully qualified
ipa dnsrecord-del 41.100.10.in-addr-arpa. 250 --ptr-rec test1.test.com
ipa: ERROR: 250: DNS resource record not found
ipa dnsrecord-del 41.100.10.in-addr-arpa. test1.test.com. --ptr-rec 250
ipa: ERROR: invalid 'hostname': invalid domain-name: not fully qualified
Its got to be a simple thing I am missing, can someone please show what I
am doing wrong?
$ ipa dnszone-show 41.100.10.in-addr-arpa.
$ ipa dnsrecord-find 41.100.10.in-addr-arpa. 250
Thank you.
--
Petr^2 Spacek
_______________________________________________
Freeipa-users mailing list
https://www.redhat.com/mailman/listinfo/freeipa-users
--
Petr Vobornik
--
Brent S. Clark
NOC Engineer

2580 55th St. | Boulder, Colorado 80301
www.tendrilinc.com | blog <http://www.tendrilinc.com/news-room/blog/>
<http://www.tendrilinc.com/>


This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender.
Please note that any views or opinions presented in this email are solely those of the author and do not necessarily represent those of the company.
Finally, the recipient should check this email and any attachments for the presence of viruses.
The company accepts no liability for any damage caused by any virus transmitted by this email.
Loading...