I am configuring a development jail to use an internal
When I use pkg inside this jail I get the following error:
However,
Actually, I would prefer to simply provide the IPv4 address and avoid the DNS nonsense but
This behaviour evidently prevents pkg from finding, or at least using, the repository. Why does
pkg
repository populated by Poudriere. The /usr/local/etc/pkg/repos/Poudriere.conf
file contains this:
Code:
Poudriere: {
url: http://http://vhost01.internal.hamilton.harte-lyne.ca/poudriere/packages/freebsd_12_2x64-PORTS_12_2"
enabled: yes
}
When I use pkg inside this jail I get the following error:
Code:
[root@accounting-2 ~ (master)]# pkg search ncurses
pkg: Repository Poudriere missing. 'pkg update' required
pkg: http://http//vhost01.internal.hamilton.harte-lyne.ca/poudriere/packages/freebsd_12_2x64-PORTS_12_2"/meta.txz: No address record
pkg: http://http//vhost01.internal.hamilton.harte-lyne.ca/poudriere/packages/freebsd_12_2x64-PORTS_12_2"/packagesite.txz: No address record
pkg update
Updating Poudriere repository catalogue...
pkg: http://http//vhost01.internal.hamilton.harte-lyne.ca/poudriere/packages/freebsd_12_2x64-PORTS_12_2"/meta.txz: No address record
repository Poudriere has no meta file, using default settings
pkg: http://http//vhost01.internal.hamilton.harte-lyne.ca/poudriere/packages/freebsd_12_2x64-PORTS_12_2"/packagesite.txz: No address record
Unable to update repository Poudriere
Error updating repositories!
However,
drill
shows that the domain name is resolved by DNS:
Code:
drill vhost01.internal.hamilton.harte-lyne.ca A
;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 53997
;; flags: qr aa rd ra ; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 4
;; QUESTION SECTION:
;; vhost01.internal.hamilton.harte-lyne.ca. IN A
;; ANSWER SECTION:
vhost01.internal.hamilton.harte-lyne.ca. 172800 IN A 192.168.216.41
. . .
drill -x 192.168.216.41
;; ->>HEADER<<- opcode: QUERY, rcode: NOERROR, id: 10688
;; flags: qr aa rd ra ; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 2
;; QUESTION SECTION:
;; 41.216.168.192.in-addr.arpa. IN PTR
;; ANSWER SECTION:
41.216.168.192.in-addr.arpa. 38400 IN PTR vhost01.internal.hamilton.harte-lyne.ca.
Actually, I would prefer to simply provide the IPv4 address and avoid the DNS nonsense but
url: http://192.168.216.41/ . . .
gives the same error.This behaviour evidently prevents pkg from finding, or at least using, the repository. Why does
pkg
report it cannot find that which drill
can?