> For the complete documentation index, see [llms.txt](https://docs.cennso.com/components/smc/3.12/llms.txt) (all documentation: [llms.txt](https://docs.cennso.com/llms.txt)). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cennso.com/components/smc/3.12/config/dns-records.md).

# DNS records for PGW/UPF node selection

## Overview

PGW/GGSN selection follows the [ETSI TS 129.303](https://www.etsi.org/deliver/etsi_ts/129300_129399/129303/17.03.00_60/ts_129303v170300p.pdf) standard when discovering and selecting a PGW for a PDN session.  This method involves using DNS queries for NAPTR records which contains the necessary information to create a candidate list and select a specific one.
For more information please refer to [ETSI TS 129.303 Clause 5.1](https://www.etsi.org/deliver/etsi_ts/129300_129399/129303/17.03.00_60/ts_129303v170300p.pdf) and [ETSI TS 123.003 Clause 19.4.3](https://www.etsi.org/deliver/etsi_ts/123000_123099/123003/17.08.00_60/ts_123003v170800p.pdf).

## Capabilities 

PGW/GGSN selection can be augmented by using additional capabilities. To achieve that the character string `+nc-<network-capability>` shall be appended to the `app-protocol` name, where <network-capability> contains one or more network capability of the node.
For more information, refer to [ETSI TS 129.303 Clause 5.12](https://www.etsi.org/deliver/etsi_ts/129300_129399/129303/17.03.00_60/ts_129303v170300p.pdf).  

You can use additional capability entries to select a particular SMC by SGW or SGSN. Provisioning those entries into a DNS records is the responsibility of the network and the system design. However, SMC does not need those entries to operate.

Supported capabilities by SMC:
- NR as secondary RAN - represented as `+nc-nr` in NAPTR record

No other capabilities are supported. 

The `app-protocol` also can be extended with `+ue-<ue usage type>`, which is used to identify UE usage type.    
For more information, refer to [ETSI TS 129.303 Clause 5.8](https://www.etsi.org/deliver/etsi_ts/129300_129399/129303/17.03.00_60/ts_129303v170300p.pdf) and [ETSI TS 123.003 Clause 19.4.3](https://www.etsi.org/deliver/etsi_ts/123000_123099/123003/17.08.00_60/ts_123003v170800p.pdf). 
The operation of SMC does not rely on those entries too, using them is the responsibility of the network and the system design.

## UPF Selection

SMC uses the UPG selection mechanism according to the procedure defined in [ETSI TS 129.303 Clause 5.11](https://www.etsi.org/deliver/etsi_ts/129300_129399/129303/17.03.00_60/ts_129303v170300p.pdf). This requires sufficient NAPTR records in the used DNS service used by SMC.
For example:

```
pgw.north IN NAPTR 300   64536   "a" "x-3gpp-upf:x-sxb"    "" topon.sx.prox01.epc.mnc001.mcc001.3gppnetwork.org
pgw.south IN NAPTR 400   64536   "a" "x-3gpp-upf:x-sxb"    "" topon.sx.prox03.epc.mnc001.mcc001.3gppnetwork.org 
```

The `x-3gpp-upf` represents the service name, while `x-sxb` represents the used protocol name as described in [ETSI TS 129.303 Clause 19.4.2](https://www.etsi.org/deliver/etsi_ts/129300_129399/129303/17.03.00_60/ts_129303v170300p.pdf)
