Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When using ipam get-subnet-ip-inventory module the "dns-host-name" values are incorrect #877

Open
jeliker1 opened this issue Dec 13, 2024 · 0 comments
Labels
Networking Issue pertains to the Networking service

Comments

@jeliker1
Copy link

The dns-host-name value returned from ipam get-subnet-ip-inventory is invalid. It is missing the Subnet and VCN domain portions and returning instead HOSTNAME.oraclevcn.com

% oci -v
3.50.3
% oci network ipam get-subnet-ip-inventory --subnet-id $SUBNET_ID --query 'data."ip-inventory-subnet-resource-summary"[*].{"ip-address": "ip-address", "dns-host-name": "dns-host-name", "ip-id": "ip-id"}'
[
  {
    "dns-host-name": "bastion.oraclevcn.com",
    "ip-address": "10.100.100.10",
    "ip-id": "ocid1.privateip.oc1.phx.abyhqljr7a5rvvwv7drl2cz67mw353xvevfbg5oprjj3oue2eyojfnwu43la"
  },
  {
    "dns-host-name": "vpn2-trusted.oraclevcn.com",
    "ip-address": "10.100.100.11",
    "ip-id": "ocid1.privateip.oc1.phx.abyhqljrygzwjrsshtlzcw5v3n5wcchh2nygdtjuk47sxbsxjlfsdnv6fyia"
  },
  {
    "dns-host-name": "tmp-mgmt-server.oraclevcn.com",
    "ip-address": "10.100.100.12",
    "ip-id": "ocid1.privateip.oc1.phx.abyhqljrvezqcifixpog6meuea75yp6ztfb4urnv3mznmnhqcypynjl2dxoq"
  }
]

Each above should have the domain name of the Subnet attached:

% oci network subnet get --subnet-id $SUBNET_ID --query 'data."subnet-domain-name"'
"app.vpnphx.oraclevcn.com"

Thus, should have names like

  • bastion.app.vpnphx.oraclevcn.com
  • vpn2-trusted.app.vpnphx.oraclevcn.com
  • tmp-mgmt-server.app.vpnphx.oraclevcn.com

…instead of what we see now like this:

  • bastion.oraclevcn.com
  • vpn2-trusted.oraclevcn.com
  • tmp-mgmt-server.oraclevcn.com
@KalpanaRamasamy90 KalpanaRamasamy90 added the Networking Issue pertains to the Networking service label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Networking Issue pertains to the Networking service
Projects
None yet
Development

No branches or pull requests

2 participants